aboutsummaryrefslogtreecommitdiff
path: root/src/mesh/mesh_tunnel_tree.h
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2011-09-21 15:42:32 +0000
committerBart Polot <bart@net.in.tum.de>2011-09-21 15:42:32 +0000
commitc49bdc2e3f448a02d1031ab296ecc0805f4d8c61 (patch)
tree59721e3b978e310ac66dd45df11074f1fb4c3dca /src/mesh/mesh_tunnel_tree.h
parent7ed59b4939c09f65ce21f77fca3abcdd8061c570 (diff)
downloadgnunet-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.h10
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
266tree_add_path (struct MeshTunnelTree *t, const struct MeshPeerPath *p, 266tree_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 */
275void
276tree_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 *