summaryrefslogtreecommitdiff
path: root/zebra/redistribute.c
diff options
context:
space:
mode:
Diffstat (limited to 'zebra/redistribute.c')
-rw-r--r--zebra/redistribute.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/zebra/redistribute.c b/zebra/redistribute.c
index 1899a4d114..8cd3dddd4a 100644
--- a/zebra/redistribute.c
+++ b/zebra/redistribute.c
@@ -534,8 +534,7 @@ zebra_add_import_table_entry (struct route_node *rn, struct rib *rib)
if (rib->nexthop_num == 1)
{
nhop = rib->nexthop;
- if ((nhop->type == NEXTHOP_TYPE_IFINDEX) ||
- (nhop->type == NEXTHOP_TYPE_IFNAME))
+ if (nhop->type == NEXTHOP_TYPE_IFINDEX)
gate = NULL;
else
gate = &nhop->gate.ipv4;