summaryrefslogtreecommitdiffstats
path: root/proto
diff options
context:
space:
mode:
authorPavel Machek <pavel@ucw.cz>2000-05-10 15:42:50 +0200
committerPavel Machek <pavel@ucw.cz>2000-05-10 15:42:50 +0200
commit2a41c8d9fcd2907a531c7306e174f51218486d57 (patch)
tree633b71b049328cb3a894ac815e3f63d3de9da6cf /proto
parent45a48e2de21cbf1a48c6f478ed068e48f20f918b (diff)
downloadbird-2a41c8d9fcd2907a531c7306e174f51218486d57.tar
bird-2a41c8d9fcd2907a531c7306e174f51218486d57.zip
use password_same utility function
Diffstat (limited to 'proto')
-rw-r--r--proto/rip/rip.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/proto/rip/rip.c b/proto/rip/rip.c
index 73e3098..aa1b312 100644
--- a/proto/rip/rip.c
+++ b/proto/rip/rip.c
@@ -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);