From: Matthias Wachs Date: Tue, 14 Feb 2012 13:32:48 +0000 (+0000) Subject: - fix X-Git-Tag: initial-import-from-subversion-38251~14850 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=eb80c6d8f1002ca39d17491ea8efd70bc7c137da;p=oweals%2Fgnunet.git - fix --- diff --git a/src/transport/plugin_transport_udp.c b/src/transport/plugin_transport_udp.c index c5b74b2cb..ff3c0daea 100644 --- a/src/transport/plugin_transport_udp.c +++ b/src/transport/plugin_transport_udp.c @@ -532,6 +532,7 @@ disconnect_and_free_it (void *cls, const GNUNET_HashCode * key, void *value) 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 @@ disconnect_and_free_it (void *cls, const GNUNET_HashCode * key, void *value) 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 @@ disconnect_and_free_it (void *cls, const GNUNET_HashCode * key, void *value) udpw->cont (udpw->cont_cls, &s->target, GNUNET_SYSERR); GNUNET_free (udpw); } - udpw = plugin->msg_head; + udpw = next; } GNUNET_assert (GNUNET_YES ==