diff options
author | lynne <lynne@voltanet.io> | 2021-03-29 19:33:07 +0200 |
---|---|---|
committer | lynne <lynne@voltanet.io> | 2021-03-29 19:33:07 +0200 |
commit | 4ff390e7472a7d294e7515644fa3dcb9a3774775 (patch) | |
tree | ba1cec96eeffba98ecf21f165f16bc5d7bab8482 /ospf6d/ospf6_asbr.c | |
parent | Merge pull request #8285 from donaldsharp/rpki_find (diff) | |
download | frr-4ff390e7472a7d294e7515644fa3dcb9a3774775.tar.xz frr-4ff390e7472a7d294e7515644fa3dcb9a3774775.zip |
ospf6d: fix coverity warning
Signed-off-by: Lynne Morrison <lynne@voltanet.io>
Diffstat (limited to '')
-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 3497b2665..fd7496203 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); |