diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-06-21 13:30:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-21 13:30:21 +0200 |
commit | eab268594a59c9cdf248da0e10dbc79707113d25 (patch) | |
tree | f4445a97f20c5eb966123ead5816d88d8db71ed0 /ospfd | |
parent | Merge pull request #2507 from pacovn/Coverity_1436344_1451361_Dereference_aft... (diff) | |
parent | ospfd: null check (Coverity 23110) (diff) | |
download | frr-eab268594a59c9cdf248da0e10dbc79707113d25.tar.xz frr-eab268594a59c9cdf248da0e10dbc79707113d25.zip |
Merge pull request #2504 from pacovn/Coverity_23110_Dereference_after_null_check
ospfd: null check (Coverity 23110)
Diffstat (limited to 'ospfd')
-rw-r--r-- | ospfd/ospf_apiserver.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ospfd/ospf_apiserver.c b/ospfd/ospf_apiserver.c index 37735e361..92e2a3dcb 100644 --- a/ospfd/ospf_apiserver.c +++ b/ospfd/ospf_apiserver.c @@ -1741,6 +1741,8 @@ struct ospf_lsa *ospf_apiserver_lsa_refresher(struct ospf_lsa *lsa) struct ospf_lsa *new = NULL; struct ospf *ospf; + assert(lsa); + ospf = ospf_lookup_by_vrf_id(VRF_DEFAULT); assert(ospf); |