mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-10 05:08:42 +00:00
Very stuping bug. (I took me 4 hours to find it!)
I just wrote "=!" instead of "!=". :-(((((((
This commit is contained in:
parent
2983460bc0
commit
d27d0efe17
@ -357,7 +357,7 @@ lsa_comp(struct ospf_lsa_header *l1, struct ospf_lsa_header *l2)
|
||||
if(sn1>sn2) return CMP_NEWER;
|
||||
if(sn1<sn2) return CMP_OLDER;
|
||||
|
||||
if(l1->checksum=!l2->checksum)
|
||||
if(l1->checksum!=l2->checksum)
|
||||
return l1->checksum<l2->checksum ? CMP_OLDER : CMP_NEWER;
|
||||
|
||||
if((l1->age==LSA_MAXAGE)&&(l2->age!=LSA_MAXAGE)) return CMP_NEWER;
|
||||
|
Loading…
Reference in New Issue
Block a user