From: Ondrej Zajicek Date: Sun, 3 Jul 2011 21:24:38 +0000 (+0200) Subject: Fixes LSA checksum computation for larger LSAs. X-Git-Tag: v1.3.2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f796945f04d8be4e71cdf48d919c2035c0a2551d;p=thirdparty%2Fbird.git Fixes LSA checksum computation for larger LSAs. --- diff --git a/proto/ospf/lsalib.c b/proto/ospf/lsalib.c index 224c345ec..5e227da53 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;