From: Matthias Wachs Date: Thu, 23 Feb 2012 10:18:47 +0000 (+0000) Subject: fix to use correct queue X-Git-Tag: initial-import-from-subversion-38251~14709 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6ac9e22ffc87f225a7208d43c6e24c272ce1a388;p=oweals%2Fgnunet.git fix to use correct queue --- diff --git a/src/transport/plugin_transport_udp.c b/src/transport/plugin_transport_udp.c index 89c412b08..8b557c52c 100644 --- a/src/transport/plugin_transport_udp.c +++ b/src/transport/plugin_transport_udp.c @@ -1552,12 +1552,17 @@ udp_select_send (struct Plugin *plugin, struct GNUNET_NETWORK_Handle *sock) } if (sock == plugin->sockv4) + { GNUNET_CONTAINER_DLL_remove(plugin->ipv4_queue_head, plugin->ipv4_queue_tail, udpw); + GNUNET_free (udpw); + udpw = plugin->ipv4_queue_head; + } else if (sock == plugin->sockv6) + { GNUNET_CONTAINER_DLL_remove(plugin->ipv6_queue_head, plugin->ipv6_queue_tail, udpw); - - GNUNET_free (udpw); - udpw = plugin->ipv4_queue_head; + GNUNET_free (udpw); + udpw = plugin->ipv6_queue_head; + } } else {