summaryrefslogtreecommitdiffstats
path: root/zebra
diff options
context:
space:
mode:
Diffstat (limited to 'zebra')
-rw-r--r--zebra/redistribute.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/zebra/redistribute.c b/zebra/redistribute.c
index f3155deb1..b13f1170c 100644
--- a/zebra/redistribute.c
+++ b/zebra/redistribute.c
@@ -770,6 +770,13 @@ void zebra_import_table_rm_update(const char *rmap)
continue;
table = zebra_vrf_table_with_table_id(afi, SAFI_UNICAST,
i, VRF_DEFAULT);
+ if (!table) {
+ if (IS_ZEBRA_DEBUG_RIB_DETAILED)
+ zlog_debug("%s: Table id=%d not found",
+ __func__, i);
+ continue;
+ }
+
for (rn = route_top(table); rn; rn = route_next(rn)) {
/* For each entry in the non-default
* routing table,