projects
/
oweals
/
gnunet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Allowed to destroy NULL paths
[oweals/gnunet.git]
/
src
/
mesh
/
mesh_tunnel_tree.c
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);