diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-12-20 17:11:07 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-12-20 17:11:07 +0000 |
commit | 2c1e1042647e7abcf816a8f9ffcfe1ae7cb24fd4 (patch) | |
tree | 49b0e34fb17e295b7ac2a701283b2a8221611b09 /src/vpn/gnunet-service-vpn.c | |
parent | 674c3c1facec068cd593c03df4d11a0e78db3d8b (diff) | |
download | gnunet-2c1e1042647e7abcf816a8f9ffcfe1ae7cb24fd4.tar.gz gnunet-2c1e1042647e7abcf816a8f9ffcfe1ae7cb24fd4.zip |
-fix free after free
Diffstat (limited to 'src/vpn/gnunet-service-vpn.c')
-rw-r--r-- | src/vpn/gnunet-service-vpn.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vpn/gnunet-service-vpn.c b/src/vpn/gnunet-service-vpn.c index 16e84e715..2c1463519 100644 --- a/src/vpn/gnunet-service-vpn.c +++ b/src/vpn/gnunet-service-vpn.c | |||
@@ -2448,14 +2448,14 @@ free_destination_entry (struct DestinationEntry *de) | |||
2448 | -1, GNUNET_NO); | 2448 | -1, GNUNET_NO); |
2449 | while (NULL != (dt = de->dt_head)) | 2449 | while (NULL != (dt = de->dt_head)) |
2450 | { | 2450 | { |
2451 | GNUNET_CONTAINER_DLL_remove (de->dt_head, | ||
2452 | de->dt_tail, | ||
2453 | dt); | ||
2451 | if (NULL != dt->ts) | 2454 | if (NULL != dt->ts) |
2452 | { | 2455 | { |
2453 | free_channel_state (dt->ts); | 2456 | free_channel_state (dt->ts); |
2454 | GNUNET_assert (NULL == dt->ts); | 2457 | GNUNET_assert (NULL == dt->ts); |
2455 | } | 2458 | } |
2456 | GNUNET_CONTAINER_DLL_remove (de->dt_head, | ||
2457 | de->dt_tail, | ||
2458 | dt); | ||
2459 | GNUNET_free (dt); | 2459 | GNUNET_free (dt); |
2460 | } | 2460 | } |
2461 | if (NULL != de->heap_node) | 2461 | if (NULL != de->heap_node) |