diff options
author | Bart Polot <bart@net.in.tum.de> | 2015-06-26 12:42:09 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2015-06-26 12:42:09 +0000 |
commit | 93860c5f352bebb5cb9317a2ec92266894eb9a18 (patch) | |
tree | b8c2a59eea0ab199ca17cbb377e2beba40352848 | |
parent | 23718c7651d356990710906cc06bd819ba929463 (diff) | |
download | gnunet-93860c5f352bebb5cb9317a2ec92266894eb9a18.tar.gz gnunet-93860c5f352bebb5cb9317a2ec92266894eb9a18.zip |
- if a path is NULL is not equivalent to any other
-rw-r--r-- | src/cadet/cadet_path.c | 3 |
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, | |||
244 | unsigned int l; | 244 | unsigned int l; |
245 | unsigned int half; | 245 | unsigned int half; |
246 | 246 | ||
247 | if (NULL == p1 || NULL == p2) | ||
248 | return GNUNET_NO; | ||
249 | |||
247 | if (p1->length != p2->length) | 250 | if (p1->length != p2->length) |
248 | return GNUNET_NO; | 251 | return GNUNET_NO; |
249 | 252 | ||