diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2008-11-05 22:36:49 +0100 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2008-11-05 22:36:49 +0100 |
commit | fd91ae3325adfdc83f95a284caa746c000ad7e30 (patch) | |
tree | f05f759c9511ffda89fabadf1341a57adc5b542e /proto | |
parent | 1389f3699fc643dac6fd4d2f19fb59da3624a2fa (diff) |
Fix problem with local time changes.
Diffstat (limited to 'proto')
-rw-r--r-- | proto/ospf/packet.c | 2 | ||||
-rw-r--r-- | proto/rip/auth.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/proto/ospf/packet.c b/proto/ospf/packet.c index ead4b86f..4e8dcaf0 100644 --- a/proto/ospf/packet.c +++ b/proto/ospf/packet.c @@ -165,7 +165,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->accfrom > now) || (ptmp->accto < now)) continue; + if ((ptmp->accfrom > now_real) || (ptmp->accto < now_real)) continue; pass = ptmp; break; } diff --git a/proto/rip/auth.c b/proto/rip/auth.c index 8669e166..1f7050f0 100644 --- a/proto/rip/auth.c +++ b/proto/rip/auth.c @@ -77,7 +77,7 @@ rip_incoming_authentication( struct proto *p, struct rip_block_auth *block, stru WALK_LIST(ptmp, *l) { if (block->keyid != ptmp->id) continue; - if ((ptmp->genfrom > now) || (ptmp->gento < now)) continue; + if ((ptmp->genfrom > now_real) || (ptmp->gento < now_real)) continue; pass = ptmp; break; } |