gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r21831 - gnunet/src/core


From: gnunet
Subject: [GNUnet-SVN] r21831 - gnunet/src/core
Date: Sat, 9 Jun 2012 21:42:51 +0200

Author: grothoff
Date: 2012-06-09 21:42:51 +0200 (Sat, 09 Jun 2012)
New Revision: 21831

Modified:
   gnunet/src/core/core_api.c
Log:
-zero out

Modified: gnunet/src/core/core_api.c
===================================================================
--- gnunet/src/core/core_api.c  2012-06-09 19:30:21 UTC (rev 21830)
+++ gnunet/src/core/core_api.c  2012-06-09 19:42:51 UTC (rev 21831)
@@ -1301,6 +1301,7 @@
   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_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))
   {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]