fix
authorChristian Grothoff <christian@grothoff.org>
Tue, 16 Mar 2010 09:16:51 +0000 (09:16 +0000)
committerChristian Grothoff <christian@grothoff.org>
Tue, 16 Mar 2010 09:16:51 +0000 (09:16 +0000)
src/transport/gnunet-service-transport.c
src/transport/plugin_transport_tcp.c

index fb2a45b2318145b2786af95c42da3ad43beb6965..da78b39d95c7d15624d57f3535775c23308d0bc1 100644 (file)
@@ -2321,7 +2321,7 @@ run_validation (void *cls,
                  GNUNET_i2s (&id));
 #endif
       GNUNET_STATISTICS_update (stats,
-                               gettext_noop ("# peer addresses not validated (already in progress)"),
+                               gettext_noop ("# peer addresses not validated (in progress)"),
                                1,
                                GNUNET_NO);      
       return GNUNET_OK;
index 89246320096e9ba03dc8ff2c7a3182478c220225..a08d9862540ef61e3c52877c52fc0700a45348ac 100644 (file)
@@ -288,6 +288,7 @@ create_session (struct Plugin *plugin,
   struct PendingMessage *pm;
   struct WelcomeMessage welcome;
 
+  GNUNET_assert (client != NULL);
   GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG,
                   "tcp",
                   "Creating new session for peer `%4s'\n",
@@ -596,6 +597,7 @@ 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->target, 
                          sizeof (struct GNUNET_PeerIdentity))) ||