From eb80c6d8f1002ca39d17491ea8efd70bc7c137da Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Tue, 14 Feb 2012 13:32:48 +0000 Subject: [PATCH] - fix --- src/transport/plugin_transport_udp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 == -- 2.25.1