diff options
| author | Igor Ryzhov <iryzhov@nfware.com> | 2022-02-04 15:23:20 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-04 15:23:20 +0300 |
| commit | 2d8f6f91df16ca51eb38350a82df7c3c74b002dd (patch) | |
| tree | 195738852210aac1980a2c024214abdad6168885 | |
| parent | a89a78236cb03a2afa6dcc4227598964e6ca1a31 (diff) | |
| parent | d4e66f14854d1cc5bdb8b8209613fd596f8c1775 (diff) | |
Merge pull request #10473 from tlsalmin/master
ospfd: Core in ospf_if_down during shutdown.
| -rw-r--r-- | ospfd/ospf_interface.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ospfd/ospf_interface.c b/ospfd/ospf_interface.c index 299e753ccf..2626cccc37 100644 --- a/ospfd/ospf_interface.c +++ b/ospfd/ospf_interface.c @@ -845,6 +845,8 @@ int ospf_if_down(struct ospf_interface *oi) /* Shutdown packet reception and sending */ ospf_if_stream_unset(oi); + if (!ospf->new_table) + return 1; for (rn = route_top(ospf->new_table); rn; rn = route_next(rn)) { or = rn->info; |
