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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user