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 <iryzhov@nfware.com>
This commit is contained in:
Igor Ryzhov 2022-01-23 16:10:55 +03:00
parent 9e84443aca
commit 6ae27a4be5

View File

@ -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;