From 93860c5f352bebb5cb9317a2ec92266894eb9a18 Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Fri, 26 Jun 2015 12:42:09 +0000 Subject: - if a path is NULL is not equivalent to any other --- src/cadet/cadet_path.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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; -- cgit v1.2.3