Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bgpd: Prevent use after free in bgp_path_info_reap
bgp_path_info_unlock can free the pi, yet the hook call into bgp_snmp_update_stats is passing the pi. This will cause problems with this usage pattern somewhere along the way. Let's just reverse the order and let SNMP do it's magic before freeing. Signed-off-by: Donald Sharp <[email protected]>
- Loading branch information