aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_tcp.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-03-16 09:16:51 +0000
committerChristian Grothoff <christian@grothoff.org>2010-03-16 09:16:51 +0000
commit95efc5d08313a956037ac08eac9b974481d09aa5 (patch)
tree5dd1bd3f91b340c70bddbaa0582785cd6429f625 /src/transport/plugin_transport_tcp.c
parentafedbe80fd34d071c75080bd74ddb2387345f449 (diff)
downloadgnunet-95efc5d08313a956037ac08eac9b974481d09aa5.tar.gz
gnunet-95efc5d08313a956037ac08eac9b974481d09aa5.zip
fix
Diffstat (limited to 'src/transport/plugin_transport_tcp.c')
-rw-r--r--src/transport/plugin_transport_tcp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/transport/plugin_transport_tcp.c b/src/transport/plugin_transport_tcp.c
index 892463200..a08d98625 100644
--- a/src/transport/plugin_transport_tcp.c
+++ b/src/transport/plugin_transport_tcp.c
@@ -288,6 +288,7 @@ create_session (struct Plugin *plugin,
288 struct PendingMessage *pm; 288 struct PendingMessage *pm;
289 struct WelcomeMessage welcome; 289 struct WelcomeMessage welcome;
290 290
291 GNUNET_assert (client != NULL);
291 GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, 292 GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG,
292 "tcp", 293 "tcp",
293 "Creating new session for peer `%4s'\n", 294 "Creating new session for peer `%4s'\n",
@@ -596,6 +597,7 @@ tcp_plugin_send (void *cls,
596 where we could restrict the iteration to entries that match 597 where we could restrict the iteration to entries that match
597 the target peer... */ 598 the target peer... */
598 while ( (session != NULL) && 599 while ( (session != NULL) &&
600 (session->client != NULL) &&
599 ( (0 != memcmp (target, 601 ( (0 != memcmp (target,
600 &session->target, 602 &session->target,
601 sizeof (struct GNUNET_PeerIdentity))) || 603 sizeof (struct GNUNET_PeerIdentity))) ||