]> git.puffer.fish Git - matthieu/frr.git/commitdiff
ospf6d: fix coverity warning
authorlynne <lynne@voltanet.io>
Mon, 29 Mar 2021 17:33:07 +0000 (13:33 -0400)
committerlynne <lynne@voltanet.io>
Mon, 29 Mar 2021 17:33:07 +0000 (13:33 -0400)
Signed-off-by: Lynne Morrison <lynne@voltanet.io>
ospf6d/ospf6_asbr.c

index 3497b2665699ceeb6e070800e0f13515f2c3b572..fd7496203d2ac2cd4a2679d761005aac49091ca4 100644 (file)
@@ -1120,6 +1120,7 @@ void ospf6_asbr_remove_externals_from_area(struct ospf6_area *oa)
        /* if router is only in a stub area then purge AS-External LSAs */
        iterend = ospf6_lsdb_head(ospf6->lsdb, 0, 0, 0, &lsa);
        while (lsa != NULL) {
+               assert(lsa->lock > 1);
                lsanext = ospf6_lsdb_next(iterend, lsa);
                if (ntohs(lsa->header->type) == OSPF6_LSTYPE_AS_EXTERNAL)
                        ospf6_lsdb_remove(lsa, ospf6->lsdb);