fixing assertion tcp_plugin:976
authorMatthias Wachs <wachs@net.in.tum.de>
Thu, 3 Nov 2011 13:21:43 +0000 (13:21 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Thu, 3 Nov 2011 13:21:43 +0000 (13:21 +0000)
src/transport/gnunet-service-transport_neighbours.c

index 77c638635a092876f1fb0d6af49bbe2ccf8eadb9..cf23c5b353cfe9957c524aa6148d79ae77e734fd 100644 (file)
@@ -581,7 +581,8 @@ send_with_plugin ( const struct GNUNET_PeerIdentity * target,
 
   /* FIXME : ats returns an address with all values 0 */
   if (((plugin_name == NULL) && (addr == NULL) && (addrlen == 0 )) ||
-      ((plugin_name == NULL) && (session == NULL)))
+      ((plugin_name == NULL) && (session == NULL)) ||
+      ((plugin_name == NULL) && (addr == NULL) && (addrlen == 0 ) && (force_address == GNUNET_YES)))
   {
     if (cont != NULL)
       cont (cont_cls, target, GNUNET_SYSERR);