mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 17:51:53 +00:00
use password_same utility function
This commit is contained in:
parent
45a48e2de2
commit
2a41c8d9fc
@ -869,13 +869,12 @@ rip_get_attr(eattr *a, byte *buf)
|
|||||||
static int
|
static int
|
||||||
rip_reconfigure(struct proto *p, struct proto_config *c)
|
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 *) */;
|
int generic = sizeof(struct proto_config) + sizeof(list) /* + sizeof(struct password_item *) */;
|
||||||
|
|
||||||
#if 0
|
if (!password_same(P_CF->passwords,
|
||||||
if (!password_same())
|
new->passwords))
|
||||||
return 0;
|
return 0;
|
||||||
#endif
|
|
||||||
return !memcmp(((byte *) P_CF) + generic,
|
return !memcmp(((byte *) P_CF) + generic,
|
||||||
((byte *) new) + generic,
|
((byte *) new) + generic,
|
||||||
sizeof(struct rip_proto_config) - generic);
|
sizeof(struct rip_proto_config) - generic);
|
||||||
|
Loading…
Reference in New Issue
Block a user