From: paco Date: Wed, 20 Jun 2018 16:35:20 +0000 (+0200) Subject: ospfd: null check (Coverity 23110) X-Git-Tag: frr-6.1-dev~274^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=ed35fc05939f481f6e2493af981d4f7073365840;p=matthieu%2Ffrr.git ospfd: null check (Coverity 23110) Signed-off-by: F. Aragon --- diff --git a/ospfd/ospf_apiserver.c b/ospfd/ospf_apiserver.c index 37735e3611..92e2a3dcb9 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);