From: Ondrej Filip Date: Thu, 1 Jun 2000 00:22:48 +0000 (+0000) Subject: Very stuping bug. (I took me 4 hours to find it!) X-Git-Tag: v1.2.0~741 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d27d0efe17a197ae41e25bc56526d5fc4ac4a93e;p=thirdparty%2Fbird.git Very stuping bug. (I took me 4 hours to find it!) I just wrote "=!" instead of "!=". :-((((((( --- diff --git a/proto/ospf/lsalib.c b/proto/ospf/lsalib.c index d6317125f..f4bbe255e 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(sn1checksum=!l2->checksum) + if(l1->checksum!=l2->checksum) return l1->checksumchecksum ? CMP_OLDER : CMP_NEWER; if((l1->age==LSA_MAXAGE)&&(l2->age!=LSA_MAXAGE)) return CMP_NEWER;