From: David Barksdale Date: Mon, 9 Oct 2017 21:11:15 +0000 (-0500) Subject: Fix use-after-free in some transport tests X-Git-Tag: gnunet-0.11.0rc0~102^2~2 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ecfb2e56fb5e625d4129ee8a7a432afab35e4dec;p=oweals%2Fgnunet.git Fix use-after-free in some transport tests --- diff --git a/src/transport/test_transport_testing_restart.c b/src/transport/test_transport_testing_restart.c index 595177e03..06275055d 100644 --- a/src/transport/test_transport_testing_restart.c +++ b/src/transport/test_transport_testing_restart.c @@ -71,7 +71,8 @@ restart_cb (void *cls) p->no, GNUNET_i2s (&p->id)); ret = 0; - end (); + GNUNET_SCHEDULER_add_now (&end, + NULL); } diff --git a/src/transport/test_transport_testing_startstop.c b/src/transport/test_transport_testing_startstop.c index 6ac0250cc..931e922c4 100644 --- a/src/transport/test_transport_testing_startstop.c +++ b/src/transport/test_transport_testing_startstop.c @@ -71,7 +71,8 @@ start_cb (void *cls) p->no, GNUNET_i2s (&p->id)); ret = 0; - end (); + GNUNET_SCHEDULER_add_now (&end, + NULL); }