gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r33992 - gnunet/src/cadet


From: gnunet
Subject: [GNUnet-SVN] r33992 - gnunet/src/cadet
Date: Mon, 21 Jul 2014 02:15:18 +0200

Author: bartpolot
Date: 2014-07-21 02:15:18 +0200 (Mon, 21 Jul 2014)
New Revision: 33992

Modified:
   gnunet/src/cadet/gnunet-service-cadet_peer.c
Log:
- don't dereference c in connection pop, c might be free'd if previous call 
popped last message

Modified: gnunet/src/cadet/gnunet-service-cadet_peer.c
===================================================================
--- gnunet/src/cadet/gnunet-service-cadet_peer.c        2014-07-21 00:15:17 UTC 
(rev 33991)
+++ gnunet/src/cadet/gnunet-service-cadet_peer.c        2014-07-21 00:15:18 UTC 
(rev 33992)
@@ -1396,7 +1396,7 @@
   struct CadetPeerQueue *next;
   struct GNUNET_MessageHeader *msg;
 
-  LOG (GNUNET_ERROR_TYPE_DEBUG, "Connection pop on %s\n", GCC_2s (c));
+  LOG (GNUNET_ERROR_TYPE_DEBUG, "Connection pop on connection %p\n", c);
   for (q = peer->queue_head; NULL != q; q = next)
   {
     next = q->next;




reply via email to

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