diff options
| author | Igor Ryzhov <iryzhov@nfware.com> | 2021-05-07 17:52:41 +0300 |
|---|---|---|
| committer | Igor Ryzhov <iryzhov@nfware.com> | 2021-05-18 01:27:16 +0300 |
| commit | c84bbb2ad04f04d0a2420c7aa36d7935c454972d (patch) | |
| tree | ea5ff69db9be37b0a7d2a71a83dbc4a8a7867285 | |
| parent | 8696e8be34ab314bafe8797eaf1fad5af33da0b9 (diff) | |
ospf6d: fix crash when removing router from vrf that doesn't exist
`listgetdata(listhead(list))` crashes for an empty list.
Reproducible with:
```
router ospf6 vrf doesntexist
default-information originate always
exit
no router ospf6 vrf doesntexist
```
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
| -rw-r--r-- | ospf6d/ospf6_asbr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ospf6d/ospf6_asbr.c b/ospf6d/ospf6_asbr.c index 6981baba99..ccab39481e 100644 --- a/ospf6d/ospf6_asbr.c +++ b/ospf6d/ospf6_asbr.c @@ -579,7 +579,7 @@ void ospf6_asbr_lsa_remove(struct ospf6_lsa *lsa, if (ospf6_is_router_abr(ospf6)) oa = ospf6->backbone; else - oa = listgetdata(listhead(ospf6->area_list)); + oa = listnode_head(ospf6->area_list); if (oa == NULL) return; |
