summaryrefslogtreecommitdiffstats
path: root/ospfd
diff options
context:
space:
mode:
authorpaco <paco@voltanet.io>2018-06-20 18:35:20 +0200
committerpaco <paco@voltanet.io>2018-06-20 18:35:20 +0200
commited35fc05939f481f6e2493af981d4f7073365840 (patch)
treee7e9b2c2b5a58a172ae9bb9129d91bbddd6a492b /ospfd
parentMerge pull request #2459 from pacovn/Coverity_1469898_Uninitialized_scalar_va... (diff)
downloadfrr-ed35fc05939f481f6e2493af981d4f7073365840.tar.xz
frr-ed35fc05939f481f6e2493af981d4f7073365840.zip
ospfd: null check (Coverity 23110)
Signed-off-by: F. Aragon <paco@voltanet.io>
Diffstat (limited to 'ospfd')
-rw-r--r--ospfd/ospf_apiserver.c2
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);