aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_unix.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2013-09-12 13:42:07 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2013-09-12 13:42:07 +0000
commit91af89d4ed0c282c736f7435d518604ac7819d2f (patch)
tree92e730a6696b3234ab43f7440ed0e6376ebd9f71 /src/transport/plugin_transport_unix.c
parent224724b31899b27141c4afcd91832e0cfd388118 (diff)
downloadgnunet-91af89d4ed0c282c736f7435d518604ac7819d2f.tar.gz
gnunet-91af89d4ed0c282c736f7435d518604ac7819d2f.zip
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 (limited to 'src/transport/plugin_transport_unix.c')
-rw-r--r--src/transport/plugin_transport_unix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/transport/plugin_transport_unix.c b/src/transport/plugin_transport_unix.c
index 5cf9c5125..2087d30e5 100644
--- a/src/transport/plugin_transport_unix.c
+++ b/src/transport/plugin_transport_unix.c
@@ -700,7 +700,7 @@ get_session_it (void *cls,
700 struct GetSessionIteratorContext *gsi = cls; 700 struct GetSessionIteratorContext *gsi = cls;
701 struct Session *s = value; 701 struct Session *s = value;
702 702
703 if ( (gsi->addrlen == s->addrlen) && 703 if ((GNUNET_NO == s->inbound) && (gsi->addrlen == s->addrlen) &&
704 (0 == memcmp (gsi->address, s->addr, s->addrlen)) ) 704 (0 == memcmp (gsi->address, s->addr, s->addrlen)) )
705 { 705 {
706 gsi->res = s; 706 gsi->res = s;