summaryrefslogtreecommitdiffstats
path: root/ospf6d/ospf6_asbr.c
diff options
context:
space:
mode:
authorRuss White <russ@riw.us>2021-03-30 16:22:05 +0200
committerGitHub <noreply@github.com>2021-03-30 16:22:05 +0200
commit44f6359d08be849217d12c881c28a37e8b3d811c (patch)
treea4069099de3815fe94e19108af96c56fa247ee94 /ospf6d/ospf6_asbr.c
parentMerge pull request #8369 from idryzhov/filter-fixes (diff)
parentospf6d: fix coverity warning (diff)
downloadfrr-44f6359d08be849217d12c881c28a37e8b3d811c.tar.xz
frr-44f6359d08be849217d12c881c28a37e8b3d811c.zip
Merge pull request #8368 from volta-networks/fix_isis_ospfv3_coverity
ospf6d: fix coverity warning
Diffstat (limited to 'ospf6d/ospf6_asbr.c')
-rw-r--r--ospf6d/ospf6_asbr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ospf6d/ospf6_asbr.c b/ospf6d/ospf6_asbr.c
index 7894924a8..1a164dda1 100644
--- a/ospf6d/ospf6_asbr.c
+++ b/ospf6d/ospf6_asbr.c
@@ -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);