Skip to content

Commit

Permalink
Fix memleak only happening on fuzzer
Browse files Browse the repository at this point in the history
  • Loading branch information
Pro committed Feb 12, 2018
1 parent 2be85c4 commit 15ad342
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/server/ua_server_binary.c
Expand Up @@ -455,6 +455,7 @@ processMSG(UA_Server *server, UA_SecureChannel *channel,

#ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
// set the authenticationToken from the create session request to help fuzzing cover more lines
UA_NodeId_deleteMembers(&requestHeader->authenticationToken);
if(!UA_NodeId_isNull(&unsafe_fuzz_authenticationToken))
UA_NodeId_copy(&unsafe_fuzz_authenticationToken, &requestHeader->authenticationToken);
#endif
Expand Down

0 comments on commit 15ad342

Please sign in to comment.