From: Igor Ryzhov Date: Sun, 23 Jan 2022 13:10:55 +0000 (+0300) Subject: ospfd: fix crash on "ospf send-extra-data zebra" X-Git-Tag: base_8.2~20^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=refs%2Fpull%2F10407%2Fhead;p=mirror%2Ffrr.git ospfd: fix crash on "ospf send-extra-data zebra" `ospf->new_table` is NULL if the OSPF instance has no routes. Signed-off-by: Igor Ryzhov --- diff --git a/ospfd/ospf_vty.c b/ospfd/ospf_vty.c index 3d0804b018..9940ce1c69 100644 --- a/ospfd/ospf_vty.c +++ b/ospfd/ospf_vty.c @@ -2223,6 +2223,9 @@ static void ospf_table_reinstall_routes(struct ospf *ospf, { struct route_node *rn; + if (!rt) + return; + for (rn = route_top(rt); rn; rn = route_next(rn)) { struct ospf_route *or;