mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-15 08:57:29 +00:00
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:
parent
9e84443aca
commit
6ae27a4be5
@ -2223,6 +2223,9 @@ static void ospf_table_reinstall_routes(struct ospf *ospf,
|
|||||||
{
|
{
|
||||||
struct route_node *rn;
|
struct route_node *rn;
|
||||||
|
|
||||||
|
if (!rt)
|
||||||
|
return;
|
||||||
|
|
||||||
for (rn = route_top(rt); rn; rn = route_next(rn)) {
|
for (rn = route_top(rt); rn; rn = route_next(rn)) {
|
||||||
struct ospf_route *or;
|
struct ospf_route *or;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user