diff options
| author | Russ White <russ@riw.us> | 2021-03-30 10:22:05 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-30 10:22:05 -0400 |
| commit | 44f6359d08be849217d12c881c28a37e8b3d811c (patch) | |
| tree | a4069099de3815fe94e19108af96c56fa247ee94 | |
| parent | 1c5168bd0b4fe45f31d22fadd294ad018eca14a2 (diff) | |
| parent | 4ff390e7472a7d294e7515644fa3dcb9a3774775 (diff) | |
Merge pull request #8368 from volta-networks/fix_isis_ospfv3_coverity
ospf6d: fix coverity warning
| -rw-r--r-- | ospf6d/ospf6_asbr.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ospf6d/ospf6_asbr.c b/ospf6d/ospf6_asbr.c index 7894924a8e..1a164dda1c 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); |
