gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r17710 - gnunet/src/dht


From: gnunet
Subject: [GNUnet-SVN] r17710 - gnunet/src/dht
Date: Mon, 24 Oct 2011 13:24:57 +0200

Author: grothoff
Date: 2011-10-24 13:24:57 +0200 (Mon, 24 Oct 2011)
New Revision: 17710

Modified:
   gnunet/src/dht/test_dht_2dtorus.c
Log:
abort on error -- missing return

Modified: gnunet/src/dht/test_dht_2dtorus.c
===================================================================
--- gnunet/src/dht/test_dht_2dtorus.c   2011-10-24 11:24:39 UTC (rev 17709)
+++ gnunet/src/dht/test_dht_2dtorus.c   2011-10-24 11:24:57 UTC (rev 17710)
@@ -258,12 +258,13 @@
     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,




reply via email to

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