From ed35fc05939f481f6e2493af981d4f7073365840 Mon Sep 17 00:00:00 2001 From: paco Date: Wed, 20 Jun 2018 18:35:20 +0200 Subject: ospfd: null check (Coverity 23110) Signed-off-by: F. Aragon --- ospfd/ospf_apiserver.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ospfd') 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); -- cgit v1.2.3