gnunet

Main GNUnet Logic
Log | Files | Refs | Submodules | README | LICENSE

commit 91af89d4ed0c282c736f7435d518604ac7819d2f
parent 224724b31899b27141c4afcd91832e0cfd388118
Author: Matthias Wachs <wachs@net.in.tum.de>
Date:   Thu, 12 Sep 2013 13:42:07 +0000

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



Diffstat:
Msrc/transport/plugin_transport_unix.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/transport/plugin_transport_unix.c b/src/transport/plugin_transport_unix.c @@ -700,7 +700,7 @@ get_session_it (void *cls, 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;