]> git.proxmox.com Git - mirror_frr.git/commitdiff
[ospfd] Bug #330 regression: failure to calculate routes through networks
authorPaul Jakma <paul.jakma@sun.com>
Fri, 23 Mar 2007 11:19:08 +0000 (11:19 +0000)
committerPaul Jakma <paul.jakma@sun.com>
Fri, 23 Mar 2007 11:19:08 +0000 (11:19 +0000)
2007-03-23 Paul Jakma <paul.jakma@sun.com>

* ospf_spf.c: (ospf_nexthop_calculation) Fix silly regression
  causing ospfd to fail to calculate paths past networks not
  attached to root vertex, introduced with bug #330 fixes.

ospfd/ChangeLog
ospfd/ospf_spf.c

index d0a3fcf04b1489b576194a240d115f2095a44b80..654c31a231a0d0f19cbcc40814133864b7b6538d 100644 (file)
@@ -1,6 +1,9 @@
 2007-03-23 Paul Jakma <paul.jakma@sun.com>
 
        * ospf_spf.c: (various) Add more debug statements.
+         (ospf_nexthop_calculation) Fix silly regression causing ospfd
+         to fail to calculate paths past networks not attached to root
+         vertex, introduced with bug #330 fixes.
 
 2007-03-14 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
 
index f6e5e6630d517f749e37f6c6544c8f5af07eafa7..c8cbe3f6f0b862df1cf49680ffd5058875d41923 100644 (file)
@@ -677,7 +677,8 @@ ospf_nexthop_calculation (struct ospf_area *area, struct vertex *v,
                 }
             }
         }
-      return added;
+      if (added)
+        return added;
     }
 
   /* 16.1.1 para 4.  If there is at least one intervening router in the