1
0
mirror of https://gitlab.labs.nic.cz/labs/bird.git synced 2024-05-11 16:54:54 +00:00

Merge several fixes suggested by Joakim Tjernlund.

This commit is contained in:
Ondrej Zajicek
2010-05-02 22:41:40 +02:00
parent 6384c7d7aa
commit 506fa1a73e
5 changed files with 9 additions and 5 deletions

View File

@@ -240,7 +240,7 @@ lsasum_check(struct ospf_lsa_header *h, void *body)
c1 %= 255;
}
x = ((length - LSA_CHECKSUM_OFFSET) * c0 - c1) % 255;
x = (int)((length - LSA_CHECKSUM_OFFSET) * c0 - c1) % 255;
if (x <= 0)
x += 255;
y = 510 - c0 - x;