]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Don't segfault when someone adds passwords.
authorPavel Machek <pavel@ucw.cz>
Tue, 16 May 2000 15:02:27 +0000 (15:02 +0000)
committerPavel Machek <pavel@ucw.cz>
Tue, 16 May 2000 15:02:27 +0000 (15:02 +0000)
nest/password.c

index 30c09bf6c6ce9a6d3c6f2856a98ba849d1050421..c27062708c1a268e938f7ba2d5443f88b93f8be0 100644 (file)
@@ -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) &&