gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r25605 - gnunet/src/mesh


From: gnunet
Subject: [GNUnet-SVN] r25605 - gnunet/src/mesh
Date: Fri, 21 Dec 2012 00:01:34 +0100

Author: bartpolot
Date: 2012-12-21 00:01:33 +0100 (Fri, 21 Dec 2012)
New Revision: 25605

Modified:
   gnunet/src/mesh/mesh_test_lib.c
Log:
- make sure GNUNET_TESTBED_operation_done is not called twice

Modified: gnunet/src/mesh/mesh_test_lib.c
===================================================================
--- gnunet/src/mesh/mesh_test_lib.c     2012-12-20 22:00:12 UTC (rev 25604)
+++ gnunet/src/mesh/mesh_test_lib.c     2012-12-20 23:01:33 UTC (rev 25605)
@@ -202,7 +202,11 @@
   unsigned int i;
 
   for (i = 0; i < ctx->num_peers; i++)
+  {
+    GNUNET_assert (NULL != ctx->ops[i]);
     GNUNET_TESTBED_operation_done (ctx->ops[i]);
+    ctx->ops[i] = NULL;
+  }
   GNUNET_free (ctx->ops);
   GNUNET_free (ctx->meshes);
   GNUNET_free (ctx);
@@ -273,7 +277,7 @@
                       const GNUNET_MESH_ApplicationType* stypes)
 {
   struct GNUNET_MESH_TEST_Context *ctx;
-  
+
   ctx = GNUNET_malloc (sizeof (struct GNUNET_MESH_TEST_Context));
   ctx->num_peers = num_peers;
   ctx->ops = GNUNET_malloc (num_peers * sizeof (struct 
GNUNET_TESTBED_Operation *));




reply via email to

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