Sfoglia il codice sorgente

Cleanup server callbacks

Stefan Profanter 7 anni fa
parent
commit
cd3020946e
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      tests/fuzz/fuzz_binary_message.cc

+ 1 - 0
tests/fuzz/fuzz_binary_message.cc

@@ -28,6 +28,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
     UA_Server_processBinaryMessage(server, &c, &msg);
 	// if we got an invalid chunk, the message is not deleted, so delete it here
     UA_ByteString_deleteMembers(&msg);
+	UA_Server_run_shutdown(server);
     UA_Server_delete(server);
     UA_ServerConfig_delete(config);
     UA_Connection_deleteMembers(&c);