diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2010-11-04 17:22:43 +0100 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2010-11-04 17:22:43 +0100 |
commit | d5356072ac18d5b0eb12f14afca6bfbea702dda2 (patch) | |
tree | 3013ad55e7750ede3fdcae459a2fb1b72b60614a /proto/ospf/hello.c | |
parent | d3209d939d4d0d8801432f212edd4302a7d03633 (diff) |
Fixes a bug in LSA update of large LSAs.
Diffstat (limited to 'proto/ospf/hello.c')
-rw-r--r-- | proto/ospf/hello.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/ospf/hello.c b/proto/ospf/hello.c index 70fb6548..3d7d8de3 100644 --- a/proto/ospf/hello.c +++ b/proto/ospf/hello.c @@ -297,7 +297,7 @@ ospf_hello_send(timer *timer, int poll, struct ospf_neighbor *dirn) pp = (u32 *) (((u8 *) pkt) + sizeof(struct ospf_hello_packet)); WALK_LIST(neigh, ifa->neigh_list) { - if ((i+1) * sizeof(u32) + sizeof(struct ospf_hello_packet) > ospf_pkt_maxsize(ifa)) + if ((i+1) * sizeof(u32) + sizeof(struct ospf_hello_packet) > ospf_pkt_bufsize(ifa)) { OSPF_TRACE(D_PACKETS, "Too many neighbors on the interface!"); break; |