]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
use password_same utility function
authorPavel Machek <pavel@ucw.cz>
Wed, 10 May 2000 13:42:50 +0000 (13:42 +0000)
committerPavel Machek <pavel@ucw.cz>
Wed, 10 May 2000 13:42:50 +0000 (13:42 +0000)
proto/rip/rip.c

index 73e3098c3075943d2cb5584f34303f89d99fb574..aa1b3123016e02530a48f6811acab3e3c9bde77e 100644 (file)
@@ -869,13 +869,12 @@ rip_get_attr(eattr *a, byte *buf)
 static int
 rip_reconfigure(struct proto *p, struct proto_config *c)
 {
-  struct rip_config *new = (struct rip_config *) c;
+  struct rip_proto_config *new = (struct rip_proto_config *) c;
   int generic = sizeof(struct proto_config) + sizeof(list) /* + sizeof(struct password_item *) */;
 
-#if 0
-  if (!password_same())
+  if (!password_same(P_CF->passwords, 
+                    new->passwords))
     return 0;
-#endif
   return !memcmp(((byte *) P_CF) + generic,
                  ((byte *) new) + generic,
                  sizeof(struct rip_proto_config) - generic);