summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2003-09-03 17:31:23 +0000
committerOndrej Filip <feela@network.cz>2003-09-03 17:31:23 +0000
commit35a86ceb4082d8d31e6949f8d454eaa28c498a86 (patch)
tree4b67e618e3e69fef46fca107ec01b7c47392d1a3
parentbf135bcb1feca7b9ee35342c239ed3a66415d854 (diff)
This prevents infinite loop when bird has more that 60 neighbors. Thanks to Rani Assaf
-rw-r--r--proto/ospf/hello.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/proto/ospf/hello.c b/proto/ospf/hello.c
index b87b5ca6..a80dfa25 100644
--- a/proto/ospf/hello.c
+++ b/proto/ospf/hello.c
@@ -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: ";