From: Matthias Wachs Date: Thu, 23 Feb 2012 10:28:25 +0000 (+0000) Subject: fix for mantis bug 0002154: X-Git-Tag: initial-import-from-subversion-38251~14708 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6f82910681a10defdfd2c98fdb7b721cc7677109;p=oweals%2Fgnunet.git fix for mantis bug 0002154: change order of calls: - discard unsend messages - call transmit send continuation - call session_end --- diff --git a/src/transport/plugin_transport_udp.c b/src/transport/plugin_transport_udp.c index 8b557c52c..ccd9d07ee 100644 --- a/src/transport/plugin_transport_udp.c +++ b/src/transport/plugin_transport_udp.c @@ -541,7 +541,6 @@ disconnect_and_free_it (void *cls, const GNUNET_HashCode * key, void *value) GNUNET_i2s (&s->target), GNUNET_a2s (s->sock_addr, s->addrlen)); #endif - plugin->env->session_end (plugin->env->cls, &s->target, s); if (s->frag_ctx != NULL) { @@ -580,6 +579,8 @@ disconnect_and_free_it (void *cls, const GNUNET_HashCode * key, void *value) udpw = next; } + plugin->env->session_end (plugin->env->cls, &s->target, s); + GNUNET_assert (GNUNET_YES == GNUNET_CONTAINER_multihashmap_remove (plugin->sessions, &s->target.hashPubKey,