aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/transport/gnunet-service-transport.c2
-rw-r--r--src/transport/plugin_transport_tcp.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/transport/gnunet-service-transport.c b/src/transport/gnunet-service-transport.c
index fb2a45b23..da78b39d9 100644
--- a/src/transport/gnunet-service-transport.c
+++ b/src/transport/gnunet-service-transport.c
@@ -2321,7 +2321,7 @@ run_validation (void *cls,
2321 GNUNET_i2s (&id)); 2321 GNUNET_i2s (&id));
2322#endif 2322#endif
2323 GNUNET_STATISTICS_update (stats, 2323 GNUNET_STATISTICS_update (stats,
2324 gettext_noop ("# peer addresses not validated (already in progress)"), 2324 gettext_noop ("# peer addresses not validated (in progress)"),
2325 1, 2325 1,
2326 GNUNET_NO); 2326 GNUNET_NO);
2327 return GNUNET_OK; 2327 return GNUNET_OK;
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))) ||