diff options
author | Donald Sharp <sharpd@nvidia.com> | 2023-07-05 15:28:50 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@nvidia.com> | 2023-07-12 23:56:29 +0200 |
commit | 0cbd5855a97197f62b04a5b90ac79d78725511cb (patch) | |
tree | 545b3f60c52bf3ca8fa45b8b305736d1b30278ce /ospf6d/ospf6_gr_helper.c | |
parent | Merge pull request #13977 from anlancs/fix/mgmt-bool-change (diff) | |
download | frr-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_gr_helper.c')
-rw-r--r-- | ospf6d/ospf6_gr_helper.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ospf6d/ospf6_gr_helper.c b/ospf6d/ospf6_gr_helper.c index 216d78c1c..8159ac0cd 100644 --- a/ospf6d/ospf6_gr_helper.c +++ b/ospf6d/ospf6_gr_helper.c @@ -228,9 +228,9 @@ static bool ospf6_check_chg_in_rxmt_list(struct ospf6_neighbor *nbr) lsa->header->adv_router, lsa->lsdb); if (lsa_in_db && lsa_in_db->tobe_acknowledged) { - ospf6_lsa_unlock(lsa); + ospf6_lsa_unlock(&lsa); if (lsanext) - ospf6_lsa_unlock(lsanext); + ospf6_lsa_unlock(&lsanext); return OSPF6_TRUE; } |