diff options
Diffstat (limited to 'ospfd/ospf_spf.c')
-rw-r--r-- | ospfd/ospf_spf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ospfd/ospf_spf.c b/ospfd/ospf_spf.c index f6e5e663..c8cbe3f6 100644 --- a/ospfd/ospf_spf.c +++ b/ospfd/ospf_spf.c @@ -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 |