diff options
author | Bart Polot <bart@net.in.tum.de> | 2012-11-15 16:52:23 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2012-11-15 16:52:23 +0000 |
commit | b3ba1ad026ee22d0536ea6800334652394ceca5c (patch) | |
tree | 426b30799afd97a81cddbc4fa09ad72f27c36063 | |
parent | d0aa3bea1ce4eb600b4f81c0d4eeca522e2ad5fb (diff) | |
download | gnunet-b3ba1ad026ee22d0536ea6800334652394ceca5c.tar.gz gnunet-b3ba1ad026ee22d0536ea6800334652394ceca5c.zip |
- fix use after free
-rw-r--r-- | src/mesh/gnunet-service-mesh.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesh/gnunet-service-mesh.c b/src/mesh/gnunet-service-mesh.c index dff312b45..9a5b33d35 100644 --- a/src/mesh/gnunet-service-mesh.c +++ b/src/mesh/gnunet-service-mesh.c | |||
@@ -3339,6 +3339,11 @@ tunnel_destroy_child (void *cls, | |||
3339 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, "%u %u\n", c, cinfo->send_buffer_n); | 3339 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, "%u %u\n", c, cinfo->send_buffer_n); |
3340 | } | 3340 | } |
3341 | GNUNET_free_non_null (cinfo->send_buffer); | 3341 | GNUNET_free_non_null (cinfo->send_buffer); |
3342 | if (GNUNET_SCHEDULER_NO_TASK != cinfo->fc_poll) | ||
3343 | { | ||
3344 | GNUNET_SCHEDULER_cancel (cinfo->fc_poll); | ||
3345 | cinfo->fc_poll = GNUNET_SCHEDULER_NO_TASK; | ||
3346 | } | ||
3342 | GNUNET_free (cinfo); | 3347 | GNUNET_free (cinfo); |
3343 | return GNUNET_YES; | 3348 | return GNUNET_YES; |
3344 | } | 3349 | } |