diff options
-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 | ||