Fixes LSA checksum computation for larger LSAs.

This commit is contained in:
Ondrej Zajicek 2011-07-03 23:24:38 +02:00
parent fdf16eb658
commit f796945f04

View file

@ -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;