From a031a7e4c9232fc9433e51af6b67f22d9b0cd663 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Thu, 15 Feb 2018 21:33:22 -0500 Subject: [PATCH] zebra: On shutdown don't count removals Some of the tables are no longer stored in the zvrf and in the zns now. On shutdown zns is cleaned up after vrf( and rightly so!) As such we should not attempt to count the information if we don't have a zvrf. Signed-off-by: Donald Sharp --- zebra/zebra_rib.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c index 967bc92850..b5ce17d9f8 100644 --- a/zebra/zebra_rib.c +++ b/zebra/zebra_rib.c @@ -1150,7 +1150,8 @@ void rib_uninstall_kernel(struct route_node *rn, struct route_entry *re) */ hook_call(rib_update, rn, "uninstalling from kernel"); kernel_route_rib(rn, p, src_p, re, NULL); - zvrf->removals++; + if (zvrf) + zvrf->removals++; return; } -- 2.39.5