summaryrefslogtreecommitdiffstats
path: root/proto/ospf
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2003-09-03 19:31:23 +0200
committerOndrej Filip <feela@network.cz>2003-09-03 19:31:23 +0200
commit35a86ceb4082d8d31e6949f8d454eaa28c498a86 (patch)
tree4b67e618e3e69fef46fca107ec01b7c47392d1a3 /proto/ospf
parentbf135bcb1feca7b9ee35342c239ed3a66415d854 (diff)
downloadbird-35a86ceb4082d8d31e6949f8d454eaa28c498a86.tar
bird-35a86ceb4082d8d31e6949f8d454eaa28c498a86.zip
This prevents infinite loop when bird has more that 60 neighbors. Thanks to Rani Assaf
Diffstat (limited to 'proto/ospf')
-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 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: ";