Merge pull request #8368 from volta-networks/fix_isis_ospfv3_coverity

ospf6d: fix coverity warning
This commit is contained in:
Russ White 2021-03-30 10:22:05 -04:00 committed by GitHub
commit 44f6359d08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1122,6 +1122,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);