Fix use-after-free in some transport tests
authorDavid Barksdale <amatus@amat.us>
Mon, 9 Oct 2017 21:11:15 +0000 (16:11 -0500)
committerDavid Barksdale <amatus@amat.us>
Mon, 9 Oct 2017 21:11:15 +0000 (16:11 -0500)
src/transport/test_transport_testing_restart.c
src/transport/test_transport_testing_startstop.c

index 595177e036ac1bccdae232186d0f3d29af4eae82..06275055daf569fa93dac64aa024166a112fe90a 100644 (file)
@@ -71,7 +71,8 @@ restart_cb (void *cls)
               p->no,
               GNUNET_i2s (&p->id));
   ret = 0;
-  end ();
+  GNUNET_SCHEDULER_add_now (&end,
+                            NULL);
 }
 
 
index 6ac0250cc0f68df0132a9e8512a4f994d5b88cf0..931e922c471d50c8dfe15abfc12f10f7016ce815 100644 (file)
@@ -71,7 +71,8 @@ start_cb (void *cls)
               p->no,
               GNUNET_i2s (&p->id));
   ret = 0;
-  end ();
+  GNUNET_SCHEDULER_add_now (&end,
+                            NULL);
 }