projects
/
oweals
/
gnunet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
- if a path is NULL is not equivalent to any other
[oweals/gnunet.git]
/
src
/
cadet
/
cadet_path.c
diff --git
a/src/cadet/cadet_path.c
b/src/cadet/cadet_path.c
index fc9f9c453b77c632d9abaf6d12e1034bc0a912b2..0d972de25f36f112bad9875efb4aa3844b1f9537 100644
(file)
--- 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;