diff options
author | David Barksdale <amatus@amat.us> | 2017-10-09 16:11:15 -0500 |
---|---|---|
committer | David Barksdale <amatus@amat.us> | 2017-10-09 16:11:15 -0500 |
commit | ecfb2e56fb5e625d4129ee8a7a432afab35e4dec (patch) | |
tree | d29829cd781040b400d755ea049ec7dfd71a42db /src/transport | |
parent | 9885d037e3a8a1e605d3f18732ec3719a725d85a (diff) | |
download | gnunet-ecfb2e56fb5e625d4129ee8a7a432afab35e4dec.tar.gz gnunet-ecfb2e56fb5e625d4129ee8a7a432afab35e4dec.zip |
Fix use-after-free in some transport tests
Diffstat (limited to 'src/transport')
-rw-r--r-- | src/transport/test_transport_testing_restart.c | 3 | ||||
-rw-r--r-- | 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) | |||
71 | p->no, | 71 | p->no, |
72 | GNUNET_i2s (&p->id)); | 72 | GNUNET_i2s (&p->id)); |
73 | ret = 0; | 73 | ret = 0; |
74 | end (); | 74 | GNUNET_SCHEDULER_add_now (&end, |
75 | NULL); | ||
75 | } | 76 | } |
76 | 77 | ||
77 | 78 | ||
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) | |||
71 | p->no, | 71 | p->no, |
72 | GNUNET_i2s (&p->id)); | 72 | GNUNET_i2s (&p->id)); |
73 | ret = 0; | 73 | ret = 0; |
74 | end (); | 74 | GNUNET_SCHEDULER_add_now (&end, |
75 | NULL); | ||
75 | } | 76 | } |
76 | 77 | ||
77 | 78 | ||