]> git.proxmox.com Git - mirror_frr.git/commit - bgpd/bgp_updgrp_adv.c
bgpd: Centralize the dest unlocking for adj_out data structure
authorDonald Sharp <sharpd@nvidia.com>
Mon, 1 Feb 2021 15:14:38 +0000 (10:14 -0500)
committerDonald Sharp <sharpd@nvidia.com>
Mon, 1 Feb 2021 15:25:09 +0000 (10:25 -0500)
commit9669fbde13b8dd4d5fc82a7d67524a2a3cacc5a0
treea928eef50fa40fd680a2b4e71192453620c73bdd
parent1d03b7b88b600e2f1cf7c5e8aaa3e41c666e0b8a
bgpd: Centralize the dest unlocking for adj_out data structure

When FRR creates a adj_out data structure we lock the `struct
bgp_dest` node associated with it.  On freeing of this data
structure and removing the lock it was not associated with
the actual free of the adjacency structure.  Let's clean up
the lock/unlock to be centralized to the alloc/free of the adj_out.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
bgpd/bgp_updgrp_adv.c
bgpd/bgp_updgrp_packet.c