ospf6d: fix coverity warning

Signed-off-by: Lynne Morrison <lynne@voltanet.io>
This commit is contained in:
lynne 2021-03-29 13:33:07 -04:00
parent dc66229da8
commit 4ff390e747

View 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);