summaryrefslogtreecommitdiff
path: root/proto/ospf
diff options
context:
space:
mode:
Diffstat (limited to 'proto/ospf')
-rw-r--r--proto/ospf/lsalib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/ospf/lsalib.c b/proto/ospf/lsalib.c
index 224c345e..5e227da5 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;