diff options
author | t3sserakt <t3ss@posteo.de> | 2021-11-19 15:18:24 +0100 |
---|---|---|
committer | t3sserakt <t3ss@posteo.de> | 2021-11-19 15:18:24 +0100 |
commit | 6a043a9228022fcce97fd50739db74abdabde055 (patch) | |
tree | 8cba6d9a87731cce5d20a3f8f2cf0cb2cb8ef37d /src/testing/gnunet-cmds-helper.c | |
parent | 154d13fcb10205edf5fb56c12ac47e65abfec5a6 (diff) | |
download | gnunet-6a043a9228022fcce97fd50739db74abdabde055.tar.gz gnunet-6a043a9228022fcce97fd50739db74abdabde055.zip |
- Fixed header, fixed log level, changed block until connect logic, fixed memory issues.
Diffstat (limited to 'src/testing/gnunet-cmds-helper.c')
-rw-r--r-- | src/testing/gnunet-cmds-helper.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/testing/gnunet-cmds-helper.c b/src/testing/gnunet-cmds-helper.c index f90cc3cc4..5ff7c04ea 100644 --- a/src/testing/gnunet-cmds-helper.c +++ b/src/testing/gnunet-cmds-helper.c | |||
@@ -415,8 +415,6 @@ tokenizer_cb (void *cls, const struct GNUNET_MessageHeader *message) | |||
415 | plugin->n, plugin->local_m, ni->topology_data, | 415 | plugin->n, plugin->local_m, ni->topology_data, |
416 | ni->read_file); | 416 | ni->read_file); |
417 | 417 | ||
418 | GNUNET_free (binary); | ||
419 | |||
420 | msg_length = sizeof(struct GNUNET_CMDS_HelperReply); | 418 | msg_length = sizeof(struct GNUNET_CMDS_HelperReply); |
421 | reply = GNUNET_new (struct GNUNET_CMDS_HelperReply); | 419 | reply = GNUNET_new (struct GNUNET_CMDS_HelperReply); |
422 | reply->header.type = htons (GNUNET_MESSAGE_TYPE_CMDS_HELPER_REPLY); | 420 | reply->header.type = htons (GNUNET_MESSAGE_TYPE_CMDS_HELPER_REPLY); |
@@ -424,6 +422,10 @@ tokenizer_cb (void *cls, const struct GNUNET_MessageHeader *message) | |||
424 | 422 | ||
425 | write_message ((struct GNUNET_MessageHeader *) reply, msg_length); | 423 | write_message ((struct GNUNET_MessageHeader *) reply, msg_length); |
426 | 424 | ||
425 | GNUNET_free (binary); | ||
426 | GNUNET_free (router_ip); | ||
427 | GNUNET_free (plugin_name); | ||
428 | |||
427 | return GNUNET_OK; | 429 | return GNUNET_OK; |
428 | } | 430 | } |
429 | else if (GNUNET_MESSAGE_TYPE_CMDS_HELPER_ALL_PEERS_STARTED == ntohs ( | 431 | else if (GNUNET_MESSAGE_TYPE_CMDS_HELPER_ALL_PEERS_STARTED == ntohs ( |