fix
authorChristian Grothoff <christian@grothoff.org>
Fri, 19 Mar 2010 09:43:45 +0000 (09:43 +0000)
committerChristian Grothoff <christian@grothoff.org>
Fri, 19 Mar 2010 09:43:45 +0000 (09:43 +0000)
src/transport/plugin_transport_tcp.c

index 48ad370fae0d6b57905049279aa0da5f59913588..6786b9c34f98e8e02486a63bbffc3b18499d7d5c 100644 (file)
@@ -617,8 +617,8 @@ tcp_plugin_send (void *cls,
      where we could restrict the iteration to entries that match
      the target peer... */
   while ( (session != NULL) &&
-         (session->client != NULL) &&
-         ( (0 != memcmp (target,
+         ( (session->client == NULL) ||
+           (0 != memcmp (target,
                          &session->target, 
                          sizeof (struct GNUNET_PeerIdentity))) ||
            ( (GNUNET_YES == force_address) &&