gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [GNUnet-SVN] r29232 - gnunet/src/transport
Date: Thu, 12 Sep 2013 15:42:07 +0200

Author: wachs
Date: 2013-09-12 15:42:07 +0200 (Thu, 12 Sep 2013)
New Revision: 29232

Modified:
   gnunet/src/transport/plugin_transport_unix.c
Log:
fixing assertion in ATS about unknown address in use:

unix returned inbound session with length 0 when transport asked for outbound 
address 
so ATS cannot compare addresses

this bug took exactly so long to find as the additional check has chars



Modified: gnunet/src/transport/plugin_transport_unix.c
===================================================================
--- gnunet/src/transport/plugin_transport_unix.c        2013-09-12 13:32:04 UTC 
(rev 29231)
+++ gnunet/src/transport/plugin_transport_unix.c        2013-09-12 13:42:07 UTC 
(rev 29232)
@@ -700,7 +700,7 @@
   struct GetSessionIteratorContext *gsi = cls;
   struct Session *s = value;
 
-  if ( (gsi->addrlen == s->addrlen) &&
+  if ((GNUNET_NO == s->inbound) && (gsi->addrlen == s->addrlen) &&
        (0 == memcmp (gsi->address, s->addr, s->addrlen)) )
   {
     gsi->res = s;




reply via email to

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