- fix for 2336
authorMatthias Wachs <wachs@net.in.tum.de>
Thu, 10 May 2012 08:40:41 +0000 (08:40 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Thu, 10 May 2012 08:40:41 +0000 (08:40 +0000)
src/transport/plugin_transport_udp.c

index 9a99fc556d28b4b5c51ec7660042926675d0065b..338a9de2ba72ee719c0b5cf087f7ff9baacfdae2 100644 (file)
@@ -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: