diff options
author | Pavel Machek <pavel@ucw.cz> | 2000-05-16 17:02:27 +0200 |
---|---|---|
committer | Pavel Machek <pavel@ucw.cz> | 2000-05-16 17:02:27 +0200 |
commit | d6796e7b546bd0a28b85666a95eda039eabc5c5f (patch) | |
tree | 78b96b2b7ce7574302a3aaa34ecb36796643f722 /nest | |
parent | 2f2663bdb735ca155c32b0e12da814e62bbf9e9d (diff) | |
download | bird-d6796e7b546bd0a28b85666a95eda039eabc5c5f.tar bird-d6796e7b546bd0a28b85666a95eda039eabc5c5f.zip |
Don't segfault when someone adds passwords.
Diffstat (limited to 'nest')
-rw-r--r-- | nest/password.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nest/password.c b/nest/password.c index 30c09bf..c270627 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) && |