projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97df373
)
Allowed to destroy NULL paths
author
Bart Polot
<bart@net.in.tum.de>
Thu, 27 Oct 2011 00:47:57 +0000
(
00:47
+0000)
committer
Bart Polot
<bart@net.in.tum.de>
Thu, 27 Oct 2011 00:47:57 +0000
(
00:47
+0000)
src/mesh/mesh_tunnel_tree.c
patch
|
blob
|
history
diff --git
a/src/mesh/mesh_tunnel_tree.c
b/src/mesh/mesh_tunnel_tree.c
index f3b19beedb92bb40e602d9dcdc4fccb96ae70912..a80cbb0c07d5763d11cbee32a7ad1194352b3a12 100644
(file)
--- a/
src/mesh/mesh_tunnel_tree.c
+++ b/
src/mesh/mesh_tunnel_tree.c
@@
-159,6
+159,8
@@
path_get_cost (struct MeshTunnelTree *t, struct MeshPeerPath *path)
int
path_destroy (struct MeshPeerPath *p)
{
+ if (NULL == p)
+ return GNUNET_OK;
GNUNET_PEER_decrement_rcs (p->peers, p->length);
GNUNET_free (p->peers);
GNUNET_free (p);