fix
authorChristian Grothoff <christian@grothoff.org>
Sun, 5 Jun 2011 16:56:17 +0000 (16:56 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sun, 5 Jun 2011 16:56:17 +0000 (16:56 +0000)
src/hostlist/hostlist-server.c

index 62d4fa64b0eb543a740658e39727fc492452cf6b..c8e17f33af437a6d79b9d80a6ede554f04d40dc2 100644 (file)
@@ -187,12 +187,14 @@ host_processor (void *cls,
   int has_addr;
   
   if (err_msg != NULL)
-  {
-       GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
-                     _("Error in communication with PEERINFO service:\n `%s'"), err_msg);
-       return;
-  }
-
+    {
+      GNUNET_assert (NULL == peer);
+      pitr = NULL;
+      GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+                 _("Error in communication with PEERINFO service: %s\n"), 
+                 err_msg);
+      return;
+    }
   if (peer == NULL)
     {
       pitr = NULL;