diff options
-rw-r--r-- | proto/rip/rip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/rip/rip.c b/proto/rip/rip.c index c2285a7b..cfaaa4c3 100644 --- a/proto/rip/rip.c +++ b/proto/rip/rip.c @@ -221,7 +221,7 @@ advertise_entry( struct proto *p, struct rip_block *b, ip_addr whotoldme ) /* set to: interface of nexthop */ a = rta_lookup(&A); - if (!ipa_equal( ipa_mkmask(ipa_mklen(b->netmask)), b->netmask)) { + if (ipa_mklen(b->netmask)==-1) { log( L_ERR "%I asked me to route %I/%I, but that is not valid netmask.", A.from, b->network, b->netmask ); return; } |