]> git.proxmox.com Git - mirror_frr.git/commit - bgpd/bgp_route.c
bgpd: Prevent use after variable goes out of scope
authorDonald Sharp <sharpd@nvidia.com>
Mon, 24 Jan 2022 12:02:37 +0000 (07:02 -0500)
committerDonald Sharp <sharpd@nvidia.com>
Fri, 4 Feb 2022 15:29:38 +0000 (10:29 -0500)
commitcd44428d6230880b0f1c1a34886144889ca4ba79
tree379a24202c1be63f50395df915ea796de96d28ac
parentd058d106f0e04d4fb531a2466c0e2d9a5a559663
bgpd: Prevent use after variable goes out of scope

`struct prefix p` was declared inside an if statement
where we assign the address of to a pointer that is
then passed to a sub function.  This will eventually
leave us in a bad state.

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