abort on error -- missing return
authorChristian Grothoff <christian@grothoff.org>
Mon, 24 Oct 2011 11:24:57 +0000 (11:24 +0000)
committerChristian Grothoff <christian@grothoff.org>
Mon, 24 Oct 2011 11:24:57 +0000 (11:24 +0000)
src/dht/test_dht_2dtorus.c

index 1cc0e7980637d41409d5cba64a2ea4eab6706b11..b6e3cf630815c2eff637261359c0fdf7af9a578c 100644 (file)
@@ -258,12 +258,13 @@ do_test (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
     if (strcmp (id_aux, id_near2) == 0)
       d2 = aux;
   }
-  if (NULL == o || NULL == d || NULL == d2 || NULL == d_far)
+  if ( (NULL == o) || (NULL == d) || (NULL == d2) || (NULL == d_far))
   {
     GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
                 "test: Peers not found (hostkey file changed?)\n");
     GNUNET_SCHEDULER_cancel (disconnect_task);
     disconnect_task = GNUNET_SCHEDULER_add_now (&disconnect_peers, NULL);
+    return;
   }
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "test: test_task\n");
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,