gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r21401 - gnunet/src/transport


From: gnunet
Subject: [GNUnet-SVN] r21401 - gnunet/src/transport
Date: Thu, 10 May 2012 10:40:41 +0200

Author: wachs
Date: 2012-05-10 10:40:41 +0200 (Thu, 10 May 2012)
New Revision: 21401

Modified:
   gnunet/src/transport/plugin_transport_udp.c
Log:
- fix for 2336


Modified: gnunet/src/transport/plugin_transport_udp.c
===================================================================
--- gnunet/src/transport/plugin_transport_udp.c 2012-05-09 21:56:52 UTC (rev 
21400)
+++ gnunet/src/transport/plugin_transport_udp.c 2012-05-10 08:40:41 UTC (rev 
21401)
@@ -1219,6 +1219,12 @@
   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 @@
     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:




reply via email to

[Prev in Thread] Current Thread [Next in Thread]