gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r10739 - gnunet/src/util


From: gnunet
Subject: [GNUnet-SVN] r10739 - gnunet/src/util
Date: Thu, 1 Apr 2010 13:18:27 +0200

Author: wachs
Date: 2010-04-01 13:18:27 +0200 (Thu, 01 Apr 2010)
New Revision: 10739

Modified:
   gnunet/src/util/test_resolver_api.c
Log:


Modified: gnunet/src/util/test_resolver_api.c
===================================================================
--- gnunet/src/util/test_resolver_api.c 2010-04-01 10:00:31 UTC (rev 10738)
+++ gnunet/src/util/test_resolver_api.c 2010-04-01 11:18:27 UTC (rev 10739)
@@ -266,7 +266,7 @@
       = gethostbyaddr(&rootserver_addr, sizeof(rootserver_addr), AF_INET);
   if (rootserver == NULL)
     {
-      /* Error: resolving ip addresses does not work */
+      /* Error: resolving IP addresses does not work */
 #if DEBUG_RESOLVER
       GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
           _("gethostbyaddr() could not lookup hostname: %s\n"),
@@ -274,14 +274,16 @@
 #endif
       GNUNET_break(0);
     }
-
-  if (0 != strcmp(rootserver->h_name, ROOTSERVER_NAME))
+  else
+  {
+    if (0 != strcmp(rootserver->h_name, ROOTSERVER_NAME))
     {
 #if DEBUG_RESOLVER
       GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Received hostname and hostname for 
root name server differ\n");
 #endif
       GNUNET_break(0);
     }
+  }
 
 #if DEBUG_RESOLVER
   GNUNET_log (GNUNET_ERROR_TYPE_INFO, "System's own reverse name resolution is 
working\n");





reply via email to

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