diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2011-06-29 13:32:55 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2011-06-29 13:32:55 +0000 |
commit | 7c6732c225bc9b862f9b6e0782c1b69d5b4fa74d (patch) | |
tree | de9adc157e2d0700c599c9af4eb20d1147a51ea5 /src/transport/plugin_transport_tcp.c | |
parent | e3a06884ed6c5284572f6ffa92288b5015210623 (diff) | |
download | gnunet-7c6732c225bc9b862f9b6e0782c1b69d5b4fa74d.tar.gz gnunet-7c6732c225bc9b862f9b6e0782c1b69d5b4fa74d.zip |
need more checks
Diffstat (limited to 'src/transport/plugin_transport_tcp.c')
-rw-r--r-- | src/transport/plugin_transport_tcp.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/transport/plugin_transport_tcp.c b/src/transport/plugin_transport_tcp.c index 872bac4ce..41f8fb911 100644 --- a/src/transport/plugin_transport_tcp.c +++ b/src/transport/plugin_transport_tcp.c | |||
@@ -2076,7 +2076,11 @@ libgnunet_plugin_transport_tcp_init (void *cls) | |||
2076 | &try_connection_reversal, | 2076 | &try_connection_reversal, |
2077 | plugin); | 2077 | plugin); |
2078 | while (ret > 0) | 2078 | while (ret > 0) |
2079 | GNUNET_free (addrs[--ret]); | 2079 | { |
2080 | ret--; | ||
2081 | GNUNET_assert (addrs[ret] != NULL); | ||
2082 | GNUNET_free (addrs[ret]); | ||
2083 | } | ||
2080 | GNUNET_free_non_null (addrs); | 2084 | GNUNET_free_non_null (addrs); |
2081 | GNUNET_free_non_null (addrlens); | 2085 | GNUNET_free_non_null (addrlens); |
2082 | } | 2086 | } |