summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--isisd/isis_route.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/isisd/isis_route.c b/isisd/isis_route.c
index 0e7947dd46..a91ce7eeac 100644
--- a/isisd/isis_route.c
+++ b/isisd/isis_route.c
@@ -91,16 +91,10 @@ static struct isis_nexthop *nexthoplookup(struct list *nexthops, int family,
struct isis_nexthop *nh;
for (ALL_LIST_ELEMENTS_RO(nexthops, node, nh)) {
- if (nh->ifindex != ifindex)
- continue;
-
- /* if the IP is unspecified, return the first nexthop found on
- * the interface */
- if (!ip)
- return nh;
-
if (nh->family != family)
continue;
+ if (nh->ifindex != ifindex)
+ continue;
switch (family) {
case AF_INET: