fix for mantis 2320
authorMatthias Wachs <wachs@net.in.tum.de>
Mon, 7 May 2012 08:25:49 +0000 (08:25 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Mon, 7 May 2012 08:25:49 +0000 (08:25 +0000)
src/transport/gnunet-service-transport_neighbours.c

index 00fe3bc4d292148b1dc9e1e415ede3dd23841b16..b0da708c75b80e7c090aa22643334f5d76286198 100644 (file)
@@ -2479,8 +2479,9 @@ GST_neighbours_handle_connect_ack (const struct GNUNET_MessageHeader *message,
     return;
   }
 
-  if ((n->state != S_CONNECT_SENT) &&
-      ((n->state != S_CONNECT_RECV) && (n->address != NULL)))
+  if ((NULL == n->address) ||
+       ((n->state != S_CONNECT_SENT) &&
+      ((n->state != S_CONNECT_RECV) && (n->address != NULL))))
   {
     GNUNET_STATISTICS_update (GST_stats,
                               gettext_noop