]> git.puffer.fish Git - matthieu/frr.git/commitdiff
ospfd: null check (Coverity 23110)
authorpaco <paco@voltanet.io>
Wed, 20 Jun 2018 16:35:20 +0000 (18:35 +0200)
committerpaco <paco@voltanet.io>
Wed, 20 Jun 2018 16:35:20 +0000 (18:35 +0200)
Signed-off-by: F. Aragon <paco@voltanet.io>
ospfd/ospf_apiserver.c

index 37735e36119e3129cb091bc5d2d3f06b8312bb80..92e2a3dcb908062ee871abf3eff55f11dbbce35b 100644 (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);