diff options
author | Ondrej Filip <feela@network.cz> | 2005-02-12 23:19:46 +0100 |
---|---|---|
committer | Ondrej Filip <feela@network.cz> | 2005-02-12 23:19:46 +0100 |
commit | bae7c43ff35482807654519253b1daa0a6518951 (patch) | |
tree | 23e15466fd73bed991b9f0e2168ef3bcde55aef6 | |
parent | 9912fa51c8dabbbdf068d271ee7bddfb4a8526ef (diff) | |
download | bird-bae7c43ff35482807654519253b1daa0a6518951.tar bird-bae7c43ff35482807654519253b1daa0a6518951.zip |
Bugfix in password acceptance
-rw-r--r-- | proto/ospf/packet.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/proto/ospf/packet.c b/proto/ospf/packet.c index 5b0ad80..f6b68fd 100644 --- a/proto/ospf/packet.c +++ b/proto/ospf/packet.c @@ -164,7 +164,7 @@ ospf_pkt_checkauth(struct ospf_neighbor *n, struct ospf_iface *ifa, struct ospf_ WALK_LIST(ptmp, *(ifa->passwords)) { if (pkt->u.md5.keyid != ptmp->id) continue; - if ((ptmp->genfrom > now) || (ptmp->gento < now)) continue; + if ((ptmp->accfrom > now) || (ptmp->accto < now)) continue; pass = ptmp; break; } @@ -278,7 +278,7 @@ ospf_rx_hook(sock * sk, int size) if (ntohl(ps->areaid) != ifa->oa->areaid) { - log(L_ERR "%s%I - other area %ld", mesg, sk->faddr, ps->areaid); + log(L_ERR "%s%I - different area %ld", mesg, sk->faddr, ntohl(ps->areaid)); return 1; } |