From d57d341091a48f394d215cb35c17fec53ee32b51 Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Thu, 10 May 2012 08:40:41 +0000 Subject: [PATCH] - fix for 2336 --- src/transport/plugin_transport_udp.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/transport/plugin_transport_udp.c b/src/transport/plugin_transport_udp.c index 9a99fc556..338a9de2b 100644 --- a/src/transport/plugin_transport_udp.c +++ b/src/transport/plugin_transport_udp.c @@ -1219,6 +1219,12 @@ process_inbound_tokenized_messages (void *cls, void *client, struct GNUNET_TIME_Relative delay; GNUNET_assert (si->session != NULL); + + if (GNUNET_NO == GNUNET_CONTAINER_multihashmap_contains_value(plugin->sessions, + &si->sender.hashPubKey, + si->session)) + return; + /* setup ATS */ ats[0].type = htonl (GNUNET_ATS_QUALITY_NET_DISTANCE); ats[0].value = htonl (1); @@ -1676,7 +1682,7 @@ udp_select_read (struct Plugin *plugin, struct GNUNET_NETWORK_Handle *rsock) return; case GNUNET_MESSAGE_TYPE_TRANSPORT_UDP_ACK: - read_process_ack (plugin, msg, addr, fromlen);; + read_process_ack (plugin, msg, addr, fromlen); return; case GNUNET_MESSAGE_TYPE_FRAGMENT: -- 2.25.1