gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r2782 - GNUnet/src/server


From: grothoff
Subject: [GNUnet-SVN] r2782 - GNUnet/src/server
Date: Fri, 12 May 2006 23:51:39 -0700 (PDT)

Author: grothoff
Date: 2006-05-12 23:51:38 -0700 (Fri, 12 May 2006)
New Revision: 2782

Modified:
   GNUnet/src/server/gnunet-transport-check.c
Log:
fixing mantis 1087

Modified: GNUnet/src/server/gnunet-transport-check.c
===================================================================
--- GNUnet/src/server/gnunet-transport-check.c  2006-05-11 04:31:27 UTC (rev 
2781)
+++ GNUnet/src/server/gnunet-transport-check.c  2006-05-13 06:51:38 UTC (rev 
2782)
@@ -213,6 +213,14 @@
   int len;
   PeerIdentity peer;
 
+  stats[0]++; /* one more seen */
+  if (NO == transport->isAvailable(ntohs(helo->protocol))) {
+    LOG(LOG_DEBUG,
+       _(" Transport %d is not being tested\n"),
+       ntohs(helo->protocol));
+    return;
+  }
+  stats[1]++; /* one more with transport 'available' */
   if (testConfigurationString("GNUNET-TRANSPORT-CHECK",
                              "VERBOSE",
                              "YES")) {
@@ -227,14 +235,6 @@
   helo = MALLOC(ntohs(xhelo->header.size));
   memcpy(helo, xhelo, ntohs(xhelo->header.size));
 
-  stats[0]++; /* one more seen */
-  if (NO == transport->isAvailable(ntohs(helo->protocol))) {
-    fprintf(stderr,
-           _(" Transport %d not available\n"),
-           ntohs(helo->protocol));
-    FREE(helo);
-    return;
-  }
   myHelo = transport->createhello(ntohs(xhelo->protocol));
   if (myHelo == NULL) {
     FREE(helo);
@@ -244,8 +244,6 @@
                              "VERBOSE",
                              "YES"))
     fprintf(stderr, ".");
-
-  stats[1]++; /* one more with transport 'available' */
   tsession = NULL;
   peer = helo->senderIdentity;
   tsession = transport->connect(helo);





reply via email to

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