]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Password same now actually works
authorPavel Machek <pavel@ucw.cz>
Tue, 16 May 2000 15:00:15 +0000 (15:00 +0000)
committerPavel Machek <pavel@ucw.cz>
Tue, 16 May 2000 15:00:15 +0000 (15:00 +0000)
nest/password.c

index b8acb53b2bd7fe28679c8d2aa48304ac338a738c..30c09bf6c6ce9a6d3c6f2856a98ba849d1050421 100644 (file)
@@ -54,6 +54,8 @@ password_strncpy(char *to, char *from, int len)
 int
 password_same(struct password_item *old, struct password_item *new)
 {
+  if (old == new)
+    return 1;
   return ((old->from == new->from) &&
          (old->to == new->to) &&
          (old->passive == new->passive) &&