]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
A minor fix in OSPF.
authorOndrej Zajicek <santiago@crfreenet.org>
Thu, 7 Jan 2010 10:46:11 +0000 (11:46 +0100)
committerOndrej Zajicek <santiago@crfreenet.org>
Thu, 7 Jan 2010 10:46:11 +0000 (11:46 +0100)
proto/ospf/rt.c

index 29283268db92b4f746a50bf5855836f51e4f7e8a..aa7245ab1f301092af448600e7c3771181595556 100644 (file)
@@ -72,7 +72,7 @@ ri_better(struct proto_ospf *po, orta * new, ort *nefn, orta * old, ort *oefn, i
   if (!rfc1583)
   {
     if ((new->type < RTS_OSPF_EXT1) && (new->oa->areaid == 0)) newtype = RTS_OSPF_IA;
-    if ((old->type < RTS_OSPF_EXT2) && (old->oa->areaid == 0)) oldtype = RTS_OSPF_IA;
+    if ((old->type < RTS_OSPF_EXT1) && (old->oa->areaid == 0)) oldtype = RTS_OSPF_IA;
   }
 
   if (newtype < oldtype)