mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-15 01:37:53 +00:00
ospfd: ospf_nbr_nbma_set()/ospf_snmp_vl_add() add unlock
Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se> Acked-by: Feng Lu <lu.feng@6wind.com> (cherry picked from commit 4de398e3b676bcf041984e285dba12f229215419)
This commit is contained in:
parent
326a0eb09c
commit
14fcc0e631
@ -1927,6 +1927,9 @@ ospf_snmp_vl_add (struct ospf_vl_data *vl_data)
|
||||
lp.adv_router = vl_data->vl_peer;
|
||||
|
||||
rn = route_node_get (ospf_snmp_vl_table, (struct prefix *) &lp);
|
||||
if (rn->info)
|
||||
route_unlock_node (rn);
|
||||
|
||||
rn->info = vl_data;
|
||||
}
|
||||
|
||||
|
@ -1830,6 +1830,8 @@ ospf_nbr_nbma_set (struct ospf *ospf, struct in_addr nbr_addr)
|
||||
p.prefixlen = IPV4_MAX_BITLEN;
|
||||
|
||||
rn = route_node_get (ospf->nbr_nbma, (struct prefix *)&p);
|
||||
if (rn->info)
|
||||
route_unlock_node (rn);
|
||||
rn->info = nbr_nbma;
|
||||
|
||||
for (ALL_LIST_ELEMENTS_RO (ospf->oiflist, node, oi))
|
||||
|
Loading…
Reference in New Issue
Block a user