- fix use of uninitialized memory
[oweals/gnunet.git] / src / revocation / test_revocation.c
index d015ed1528f2b9adf59375820aed55f840c64b02..e9be5df84cf28ffc3754296288182659d840e4d3 100644 (file)
@@ -1,6 +1,6 @@
 /*
    This file is part of GNUnet.
-   (C) 2009, 2013 Christian Grothoff (and other contributing authors)
+   Copyright (C) 2009, 2013 Christian Grothoff (and other contributing authors)
 
    GNUnet is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published
@@ -14,8 +14,8 @@
 
    You should have received a copy of the GNU General Public License
    along with GNUnet; see the file COPYING.  If not, write to the
-   Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-   Boston, MA 02111-1307, USA.
+   Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+   Boston, MA 02110-1301, USA.
 */
 /**
  * @file revocation/test_revocation.c
@@ -383,7 +383,8 @@ test_connection (void *cls,
     GNUNET_SCHEDULER_shutdown ();
     return;
   }
-  if (0 == links_failed)
+   /* We are generating a CLIQUE */
+  if (NUM_TEST_PEERS * (NUM_TEST_PEERS -1) == links_succeeded)
   {
     fprintf (stderr,
              "Testbed connected peers, initializing test\n");