Browse Source

Fix oss_fuzz bug 3607

String NodeID was not freed after decoding

See: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3607
Credit to oss-fuzz
Stefan Profanter 6 years ago
parent
commit
fb350446f3
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/server/ua_server_binary.c

+ 1 - 0
src/server/ua_server_binary.c

@@ -314,6 +314,7 @@ processOPN(UA_Server *server, UA_SecureChannel *channel,
         UA_SecureChannelManager_close(&server->secureChannelManager, channel->securityToken.channelId);
         return retval;
     }
+	UA_NodeId_deleteMembers(&requestType);
 
     /* Call the service */
     UA_OpenSecureChannelResponse openScResponse;