mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-03 08:56:13 +00:00
bgpd: bgp_distance_unset ensure dest exists
Coverity doesn't understand our locking scheme make sure it does a bit better. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
70f6103afd
commit
271c00074f
@ -15049,7 +15049,8 @@ static int bgp_distance_unset(struct vty *vty, const char *distance_str,
|
||||
bgp_distance_free(bdistance);
|
||||
|
||||
bgp_dest_set_bgp_path_info(dest, NULL);
|
||||
bgp_dest_unlock_node(dest);
|
||||
dest = bgp_dest_unlock_node(dest);
|
||||
assert(dest);
|
||||
bgp_dest_unlock_node(dest);
|
||||
|
||||
return CMD_SUCCESS;
|
||||
|
Loading…
Reference in New Issue
Block a user