]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Fixes LSA checksum computation for larger LSAs.
authorOndrej Zajicek <santiago@crfreenet.org>
Sun, 3 Jul 2011 21:24:38 +0000 (23:24 +0200)
committerOndrej Zajicek <santiago@crfreenet.org>
Sun, 3 Jul 2011 21:24:38 +0000 (23:24 +0200)
proto/ospf/lsalib.c

index 224c345ece9910c0281b0433076d248b5313c550..5e227da532c47ca66fb5a2f7486a072b10847455 100644 (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;