From d6796e7b546bd0a28b85666a95eda039eabc5c5f Mon Sep 17 00:00:00 2001 From: Pavel Machek Date: Tue, 16 May 2000 15:02:27 +0000 Subject: [PATCH] Don't segfault when someone adds passwords. --- nest/password.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nest/password.c b/nest/password.c index 30c09bf6..c2706270 100644 --- a/nest/password.c +++ b/nest/password.c @@ -56,6 +56,8 @@ password_same(struct password_item *old, struct password_item *new) { if (old == new) return 1; + if ((!old) || (!new)) + return 0; return ((old->from == new->from) && (old->to == new->to) && (old->passive == new->passive) &&