diff options
author | Bart Polot <bart@net.in.tum.de> | 2011-09-21 15:42:32 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2011-09-21 15:42:32 +0000 |
commit | c49bdc2e3f448a02d1031ab296ecc0805f4d8c61 (patch) | |
tree | 59721e3b978e310ac66dd45df11074f1fb4c3dca /src/mesh/mesh_tunnel_tree.h | |
parent | 7ed59b4939c09f65ce21f77fca3abcdd8061c570 (diff) | |
download | gnunet-c49bdc2e3f448a02d1031ab296ecc0805f4d8c61.tar.gz gnunet-c49bdc2e3f448a02d1031ab296ecc0805f4d8c61.zip |
Fixed use of uninitialized memory from realloc leading to segfaults and bus errors
Diffstat (limited to 'src/mesh/mesh_tunnel_tree.h')
-rw-r--r-- | src/mesh/mesh_tunnel_tree.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mesh/mesh_tunnel_tree.h b/src/mesh/mesh_tunnel_tree.h index c7878359f..05972e0fe 100644 --- a/src/mesh/mesh_tunnel_tree.h +++ b/src/mesh/mesh_tunnel_tree.h | |||
@@ -266,6 +266,16 @@ int | |||
266 | tree_add_path (struct MeshTunnelTree *t, const struct MeshPeerPath *p, | 266 | tree_add_path (struct MeshTunnelTree *t, const struct MeshPeerPath *p, |
267 | MeshNodeDisconnectCB cb); | 267 | MeshNodeDisconnectCB cb); |
268 | 268 | ||
269 | |||
270 | /** | ||
271 | * Destroy the node and all children | ||
272 | * | ||
273 | * @param n Parent node to be destroyed | ||
274 | */ | ||
275 | void | ||
276 | tree_node_destroy (struct MeshTunnelTreeNode *n); | ||
277 | |||
278 | |||
269 | /** | 279 | /** |
270 | * Destroy the whole tree and free all used memory and Peer_Ids | 280 | * Destroy the whole tree and free all used memory and Peer_Ids |
271 | * | 281 | * |