]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
This prevents infinite loop when bird has more that 60 neighbors. Thanks to Rani...
authorOndrej Filip <feela@network.cz>
Wed, 3 Sep 2003 17:31:23 +0000 (17:31 +0000)
committerOndrej Filip <feela@network.cz>
Wed, 3 Sep 2003 17:31:23 +0000 (17:31 +0000)
proto/ospf/hello.c

index b87b5ca66ab2e72fea043e020b850ba89d201580..a80dfa25df2d3302115b7e88131a40dadbd91597 100644 (file)
@@ -59,7 +59,8 @@ ospf_hello_rx(struct ospf_hello_packet *ps, struct proto *p,
 {
   u32 nrid, *pnrid;
   struct ospf_neighbor *neigh,*n;
-  u8 i,twoway,oldpriority;
+  u8 twoway,oldpriority;
+  u32 i;
   ip_addr olddr,oldbdr;
   ip_addr mask;
   char *beg=": Bad OSPF hello packet from ", *rec=" received: ";