diff options
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/core_api.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/core_api.c b/src/core/core_api.c index 5c16adeae..c3dc4c9ec 100644 --- a/src/core/core_api.c +++ b/src/core/core_api.c | |||
@@ -1301,6 +1301,7 @@ GNUNET_CORE_notify_transmit_ready (struct GNUNET_CORE_Handle *handle, int cork, | |||
1301 | GNUNET_assert (notify_size + sizeof (struct SendMessage) < | 1301 | GNUNET_assert (notify_size + sizeof (struct SendMessage) < |
1302 | GNUNET_SERVER_MAX_MESSAGE_SIZE); | 1302 | GNUNET_SERVER_MAX_MESSAGE_SIZE); |
1303 | th = &pr->th; | 1303 | th = &pr->th; |
1304 | memset (th, 0, sizeof (struct GNUNET_CORE_TransmitHandle)); | ||
1304 | th->peer = pr; | 1305 | th->peer = pr; |
1305 | th->get_message = notify; | 1306 | th->get_message = notify; |
1306 | th->get_message_cls = notify_cls; | 1307 | th->get_message_cls = notify_cls; |
@@ -1335,6 +1336,7 @@ GNUNET_CORE_notify_transmit_ready_cancel (struct GNUNET_CORE_TransmitHandle *th) | |||
1335 | GNUNET_CONTAINER_DLL_remove (h->control_pending_head, | 1336 | GNUNET_CONTAINER_DLL_remove (h->control_pending_head, |
1336 | h->control_pending_tail, th->cm); | 1337 | h->control_pending_tail, th->cm); |
1337 | GNUNET_free (th->cm); | 1338 | GNUNET_free (th->cm); |
1339 | th->cm = NULL; | ||
1338 | } | 1340 | } |
1339 | if ((NULL != pr->prev) || (NULL != pr->next) || (pr == h->ready_peer_head)) | 1341 | if ((NULL != pr->prev) || (NULL != pr->next) || (pr == h->ready_peer_head)) |
1340 | { | 1342 | { |