summaryrefslogtreecommitdiffstats
path: root/ospf6d/ospf6_neighbor.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2023-07-05 15:28:50 +0200
committerDonald Sharp <sharpd@nvidia.com>2023-07-12 23:56:29 +0200
commit0cbd5855a97197f62b04a5b90ac79d78725511cb (patch)
tree545b3f60c52bf3ca8fa45b8b305736d1b30278ce /ospf6d/ospf6_neighbor.c
parentMerge pull request #13977 from anlancs/fix/mgmt-bool-change (diff)
downloadfrr-0cbd5855a97197f62b04a5b90ac79d78725511cb.tar.xz
frr-0cbd5855a97197f62b04a5b90ac79d78725511cb.zip
ospf6d: Convert ospf6_lsa_unlock to a better api
Make the ospf6_lsa_unlock take the same parameters that the ospf_lsa_unlock does to make it consistent and to also ensure that no-one can make the mistake of getting the pointer cleared up. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'ospf6d/ospf6_neighbor.c')
-rw-r--r--ospf6d/ospf6_neighbor.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ospf6d/ospf6_neighbor.c b/ospf6d/ospf6_neighbor.c
index dc7abdd84..e1aec06f8 100644
--- a/ospf6d/ospf6_neighbor.c
+++ b/ospf6d/ospf6_neighbor.c
@@ -98,9 +98,10 @@ static void ospf6_neighbor_clear_ls_lists(struct ospf6_neighbor *on)
ospf6_lsdb_remove_all(on->summary_list);
if (on->last_ls_req) {
- ospf6_lsa_unlock(on->last_ls_req);
+ ospf6_lsa_unlock(&on->last_ls_req);
on->last_ls_req = NULL;
}
+
ospf6_lsdb_remove_all(on->request_list);
for (ALL_LSDB(on->retrans_list, lsa, lsanext)) {
ospf6_decrement_retrans_count(lsa);