diff options
author | Ondrej Filip <feela@network.cz> | 2000-06-01 02:22:48 +0200 |
---|---|---|
committer | Ondrej Filip <feela@network.cz> | 2000-06-01 02:22:48 +0200 |
commit | d27d0efe17a197ae41e25bc56526d5fc4ac4a93e (patch) | |
tree | 9538346d4ab3a055de23b0103740134411c18478 | |
parent | 2983460bc0adabe357ba839972ea8d09c97c32a4 (diff) | |
download | bird-d27d0efe17a197ae41e25bc56526d5fc4ac4a93e.tar bird-d27d0efe17a197ae41e25bc56526d5fc4ac4a93e.zip |
Very stuping bug. (I took me 4 hours to find it!)
I just wrote "=!" instead of "!=". :-(((((((
-rw-r--r-- | proto/ospf/lsalib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/ospf/lsalib.c b/proto/ospf/lsalib.c index d631712..f4bbe25 100644 --- a/proto/ospf/lsalib.c +++ b/proto/ospf/lsalib.c @@ -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; |