From ecfb2e56fb5e625d4129ee8a7a432afab35e4dec Mon Sep 17 00:00:00 2001 From: David Barksdale Date: Mon, 9 Oct 2017 16:11:15 -0500 Subject: [PATCH] Fix use-after-free in some transport tests --- src/transport/test_transport_testing_restart.c | 3 ++- src/transport/test_transport_testing_startstop.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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); } -- 2.25.1