From 4ff390e7472a7d294e7515644fa3dcb9a3774775 Mon Sep 17 00:00:00 2001 From: lynne Date: Mon, 29 Mar 2021 13:33:07 -0400 Subject: [PATCH] ospf6d: fix coverity warning Signed-off-by: Lynne Morrison --- ospf6d/ospf6_asbr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ospf6d/ospf6_asbr.c b/ospf6d/ospf6_asbr.c index 3497b26656..fd7496203d 100644 --- a/ospf6d/ospf6_asbr.c +++ b/ospf6d/ospf6_asbr.c @@ -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); -- 2.39.5