summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--zebra/zebra_rib.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c
index 78c6c831b5..481c9e0d33 100644
--- a/zebra/zebra_rib.c
+++ b/zebra/zebra_rib.c
@@ -1702,8 +1702,9 @@ rib_process (struct route_node *rn)
assert (fib);
rib_uninstall_kernel (rn, fib);
}
- /* if "select", the earlier redist delete wouldn't have happened */
- redistribute_delete(&rn->p, select);
+ /* if "select", the earlier redist delete wouldn't have happened */
+ if (fib)
+ redistribute_delete(&rn->p, fib);
}
UNSET_FLAG(select->flags, ZEBRA_FLAG_CHANGED);
}