Merge pull request #2504 from pacovn/Coverity_23110_Dereference_after_null_check

ospfd: null check (Coverity 23110)
This commit is contained in:
Donald Sharp 2018-06-21 07:30:21 -04:00 committed by GitHub
commit eab268594a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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