gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r15418 - gnunet/src/transport


From: gnunet
Subject: [GNUnet-SVN] r15418 - gnunet/src/transport
Date: Sun, 5 Jun 2011 00:29:23 +0200

Author: grothoff
Date: 2011-06-05 00:29:23 +0200 (Sun, 05 Jun 2011)
New Revision: 15418

Modified:
   gnunet/src/transport/gnunet-service-transport.c
Log:
fixes

Modified: gnunet/src/transport/gnunet-service-transport.c
===================================================================
--- gnunet/src/transport/gnunet-service-transport.c     2011-06-04 22:29:07 UTC 
(rev 15417)
+++ gnunet/src/transport/gnunet-service-transport.c     2011-06-04 22:29:23 UTC 
(rev 15418)
@@ -1976,21 +1976,21 @@
       head = head->next;
     }
   if (unix_address != NULL)
-  {
-         best_address = unix_address;
+    {
+      best_address = unix_address;
 #if DEBUG_TRANSPORT
-         GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Found unix address, forced this 
address\n");
+      GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 
+                 "Found UNIX address, forced this address\n");
 #endif
-  }
+    }
   if (best_address != NULL)
     {
 #if DEBUG_TRANSPORT
-
-         GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+      GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
                   "Best address found (`%s') has latency of %llu ms.\n",
                  (best_address->addrlen > 0)
                  ? a2s (best_address->ready_list->plugin->short_name,
-                      best_address->addr,
+                        best_address->addr,
                       best_address->addrlen)
                  : "<inbound>",
                   best_address->latency.rel_value);
@@ -3314,7 +3314,6 @@
              "Setting up state for neighbour `%4s'\n",
              GNUNET_i2s (peer));
 #endif
-  GNUNET_assert (our_hello != NULL);
   GNUNET_STATISTICS_update (stats,
                            gettext_noop ("# active neighbours"),
                            1,
@@ -3365,10 +3364,11 @@
                                 gettext_noop ("# HELLO's sent to new 
neighbors"),
                                 1,
                                 GNUNET_NO);
-      transmit_to_peer (NULL, NULL, 0,
-                       HELLO_ADDRESS_EXPIRATION,
-                       (const char *) our_hello, GNUNET_HELLO_size(our_hello),
-                       GNUNET_NO, n);
+      if (NULL != our_hello)
+       transmit_to_peer (NULL, NULL, 0,
+                         HELLO_ADDRESS_EXPIRATION,
+                         (const char *) our_hello, 
GNUNET_HELLO_size(our_hello),
+                         GNUNET_NO, n);
     }
   return n;
 }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]