summaryrefslogtreecommitdiff
path: root/pimd/pim_nht.c
diff options
context:
space:
mode:
Diffstat (limited to 'pimd/pim_nht.c')
-rw-r--r--pimd/pim_nht.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/pimd/pim_nht.c b/pimd/pim_nht.c
index de3ea2daad..98c98cdf24 100644
--- a/pimd/pim_nht.c
+++ b/pimd/pim_nht.c
@@ -665,7 +665,10 @@ pim_ecmp_nexthop_search (struct pim_nexthop_cache *pnc,
}
- return 0;
+ if (found)
+ return 0;
+ else
+ return -1;
}
/* This API is used to parse Registered address nexthop update coming from Zebra */