]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Bugfix in password acceptance
authorOndrej Filip <feela@network.cz>
Sat, 12 Feb 2005 22:19:46 +0000 (22:19 +0000)
committerOndrej Filip <feela@network.cz>
Sat, 12 Feb 2005 22:19:46 +0000 (22:19 +0000)
proto/ospf/packet.c

index 5b0ad807362af17af430696868eecad65fbb8d83..f6b68fd43114e044f361fc4a9e977954f10d7e84 100644 (file)
@@ -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;
   }