From 35a86ceb4082d8d31e6949f8d454eaa28c498a86 Mon Sep 17 00:00:00 2001 From: Ondrej Filip Date: Wed, 3 Sep 2003 17:31:23 +0000 Subject: This prevents infinite loop when bird has more that 60 neighbors. Thanks to Rani Assaf --- proto/ospf/hello.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'proto') diff --git a/proto/ospf/hello.c b/proto/ospf/hello.c index b87b5ca..a80dfa2 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: "; -- cgit v1.2.3