diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2011-07-03 23:24:38 +0200 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2011-07-03 23:24:38 +0200 |
commit | f796945f04d8be4e71cdf48d919c2035c0a2551d (patch) | |
tree | fa928c0bbea851fa6a515290324ea36f853caedb /proto/ospf | |
parent | fdf16eb65872b3bee02fb9e25c80ea32cf59f8e9 (diff) | |
download | bird-f796945f04d8be4e71cdf48d919c2035c0a2551d.tar bird-f796945f04d8be4e71cdf48d919c2035c0a2551d.zip |
Fixes LSA checksum computation for larger LSAs.
Diffstat (limited to 'proto/ospf')
-rw-r--r-- | proto/ospf/lsalib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/ospf/lsalib.c b/proto/ospf/lsalib.c index 224c345..5e227da 100644 --- a/proto/ospf/lsalib.c +++ b/proto/ospf/lsalib.c @@ -243,7 +243,7 @@ lsasum_check(struct ospf_lsa_header *h, void *body) } else { - c0 += *(b + (p - sp) - sizeof(struct ospf_lsa_header) + 2); + c0 += *(b + (p - (u8 *) (h + 1))); } c1 += c0; |