aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-05-26 10:01:45 +0000
committerChristian Grothoff <christian@grothoff.org>2015-05-26 10:01:45 +0000
commit63cdd6f3e68b485ca1d3daa1b9e004768fdd5d9c (patch)
tree6fac0fbcbd9b826d557bfba5b4dddeff288b0178
parent1a29944f160775cb23055a1bd948cb0b0ad26e84 (diff)
downloadgnunet-63cdd6f3e68b485ca1d3daa1b9e004768fdd5d9c.tar.gz
gnunet-63cdd6f3e68b485ca1d3daa1b9e004768fdd5d9c.zip
-avoid qe double-free
-rw-r--r--src/pt/test_gns_vpn.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/pt/test_gns_vpn.c b/src/pt/test_gns_vpn.c
index 0bcfc4a79..e87e13d87 100644
--- a/src/pt/test_gns_vpn.c
+++ b/src/pt/test_gns_vpn.c
@@ -305,8 +305,11 @@ disco_ns (void* cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
305 * specified target peer; NULL on error 305 * specified target peer; NULL on error
306 */ 306 */
307static void 307static void
308commence_testing (void *cls, int32_t success, const char *emsg) 308commence_testing (void *cls,
309 int32_t success,
310 const char *emsg)
309{ 311{
312 qe = NULL;
310 GNUNET_SCHEDULER_add_now (&disco_ns, NULL); 313 GNUNET_SCHEDULER_add_now (&disco_ns, NULL);
311 314
312 if ((emsg != NULL) && (GNUNET_YES != success)) 315 if ((emsg != NULL) && (GNUNET_YES != success))