fix
authorChristian Grothoff <christian@grothoff.org>
Thu, 20 Oct 2011 17:29:04 +0000 (17:29 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 20 Oct 2011 17:29:04 +0000 (17:29 +0000)
src/transport/plugin_transport_udp.c

index ddb6187e5893024c578ae4c35d562c27ef727018..e0ef50acfe08aa9ee26c13bebf608cacd0b0b671 100644 (file)
@@ -681,7 +681,7 @@ udp_plugin_send (void *cls, const struct GNUNET_PeerIdentity *target,
     }
   }
 //session_invalid:
-  if ((addr == NULL) && (addrlen == 0))
+  if ((addr == NULL) || (addrlen == 0))
     return GNUNET_SYSERR;
   peer_session = create_session (plugin, target, addr, addrlen, cont, cont_cls);
   if (peer_session == NULL)