]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Very stuping bug. (I took me 4 hours to find it!)
authorOndrej Filip <feela@network.cz>
Thu, 1 Jun 2000 00:22:48 +0000 (00:22 +0000)
committerOndrej Filip <feela@network.cz>
Thu, 1 Jun 2000 00:22:48 +0000 (00:22 +0000)
I just wrote "=!" instead of "!=". :-(((((((

proto/ospf/lsalib.c

index d6317125fbf8c143be273e935cae1774f46ae632..f4bbe255e96eb4213691bdbe5337018e45ffb0ad 100644 (file)
@@ -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;