gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r19807 - gnunet/src/transport


From: gnunet
Subject: [GNUnet-SVN] r19807 - gnunet/src/transport
Date: Tue, 14 Feb 2012 14:32:48 +0100

Author: wachs
Date: 2012-02-14 14:32:48 +0100 (Tue, 14 Feb 2012)
New Revision: 19807

Modified:
   gnunet/src/transport/plugin_transport_udp.c
Log:
- fix


Modified: gnunet/src/transport/plugin_transport_udp.c
===================================================================
--- gnunet/src/transport/plugin_transport_udp.c 2012-02-14 12:21:59 UTC (rev 
19806)
+++ gnunet/src/transport/plugin_transport_udp.c 2012-02-14 13:32:48 UTC (rev 
19807)
@@ -532,6 +532,7 @@
   struct Plugin *plugin = cls;
   struct Session *s = value;
   struct UDPMessageWrapper *udpw;
+  struct UDPMessageWrapper *next;
 
 #if DEBUG_UDP
   LOG (GNUNET_ERROR_TYPE_DEBUG,
@@ -552,6 +553,7 @@
   udpw = plugin->msg_head;
   while (udpw != NULL)
   {
+    next = udpw->next;
     if (udpw->session == s)
     {
       GNUNET_CONTAINER_DLL_remove(plugin->msg_head, plugin->msg_tail, udpw);
@@ -560,7 +562,7 @@
         udpw->cont (udpw->cont_cls, &s->target, GNUNET_SYSERR);
       GNUNET_free (udpw);
     }
-    udpw = plugin->msg_head;
+    udpw = next;
   }
 
   GNUNET_assert (GNUNET_YES ==




reply via email to

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