aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-06-09 19:42:51 +0000
committerChristian Grothoff <christian@grothoff.org>2012-06-09 19:42:51 +0000
commit4ff018860eee381464ba10f6f9eb3247fb63b8fe (patch)
treed67b3f2276ae8c419b9b4af360ba197a1bb933e8 /src/core
parentc877b55ca8dc9ab33058d753698edc907dc1dbcc (diff)
downloadgnunet-4ff018860eee381464ba10f6f9eb3247fb63b8fe.tar.gz
gnunet-4ff018860eee381464ba10f6f9eb3247fb63b8fe.zip
-zero out
Diffstat (limited to 'src/core')
-rw-r--r--src/core/core_api.c2
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 {