summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2015-06-26 12:42:09 +0000
committerBart Polot <bart@net.in.tum.de>2015-06-26 12:42:09 +0000
commit93860c5f352bebb5cb9317a2ec92266894eb9a18 (patch)
treeb8c2a59eea0ab199ca17cbb377e2beba40352848 /src
parent23718c7651d356990710906cc06bd819ba929463 (diff)
- if a path is NULL is not equivalent to any other
Diffstat (limited to 'src')
-rw-r--r--src/cadet/cadet_path.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cadet/cadet_path.c b/src/cadet/cadet_path.c
index fc9f9c453..0d972de25 100644
--- a/src/cadet/cadet_path.c
+++ b/src/cadet/cadet_path.c
@@ -244,6 +244,9 @@ path_equivalent (const struct CadetPeerPath *p1,
unsigned int l;
unsigned int half;
+ if (NULL == p1 || NULL == p2)
+ return GNUNET_NO;
+
if (p1->length != p2->length)
return GNUNET_NO;