From c34a7afc743c52e1081f10792047cdf73e9cba2c Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Fri, 4 Nov 2022 12:33:28 +0100 Subject: bgpd: fix "storing the address of local variable" New GCC 12 warning. Signed-off-by: David Lamparter --- bgpd/bgp_pbr.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bgpd') diff --git a/bgpd/bgp_pbr.c b/bgpd/bgp_pbr.c index 7b5e28724..b71e19ab3 100644 --- a/bgpd/bgp_pbr.c +++ b/bgpd/bgp_pbr.c @@ -2074,6 +2074,9 @@ static void bgp_pbr_icmp_action(struct bgp *bgp, struct bgp_path_info *path, bgp, path, bpf); } } + + bpf->src_port = NULL; + bpf->dst_port = NULL; } static void bgp_pbr_policyroute_remove_from_zebra_recursive( -- cgit v1.2.3