projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c877b55
)
-zero out
author
Christian Grothoff
<christian@grothoff.org>
Sat, 9 Jun 2012 19:42:51 +0000
(19:42 +0000)
committer
Christian Grothoff
<christian@grothoff.org>
Sat, 9 Jun 2012 19:42:51 +0000
(19:42 +0000)
src/core/core_api.c
patch
|
blob
|
history
diff --git
a/src/core/core_api.c
b/src/core/core_api.c
index 5c16adeae263221f9efcc83a49036380d8753a77..c3dc4c9ecae8c2d0ade942d54f0bfb45ce2319ef 100644
(file)
--- 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,
GNUNET_assert (notify_size + sizeof (struct SendMessage) <
GNUNET_SERVER_MAX_MESSAGE_SIZE);
th = &pr->th;
+ memset (th, 0, sizeof (struct GNUNET_CORE_TransmitHandle));
th->peer = pr;
th->get_message = notify;
th->get_message_cls = notify_cls;
@@
-1335,6
+1336,7
@@
GNUNET_CORE_notify_transmit_ready_cancel (struct GNUNET_CORE_TransmitHandle *th)
GNUNET_CONTAINER_DLL_remove (h->control_pending_head,
h->control_pending_tail, th->cm);
GNUNET_free (th->cm);
+ th->cm = NULL;
}
if ((NULL != pr->prev) || (NULL != pr->next) || (pr == h->ready_peer_head))
{