summaryrefslogtreecommitdiffstats
path: root/bgpd
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2022-11-04 12:33:28 +0100
committerDavid Lamparter <equinox@opensourcerouting.org>2022-11-04 12:34:00 +0100
commitc34a7afc743c52e1081f10792047cdf73e9cba2c (patch)
tree1c9e6b4573a3c65cc596ccad883d8e596671f57d /bgpd
parentMerge pull request #12196 from opensourcerouting/xref-vtysh (diff)
downloadfrr-c34a7afc743c52e1081f10792047cdf73e9cba2c.tar.xz
frr-c34a7afc743c52e1081f10792047cdf73e9cba2c.zip
bgpd: fix "storing the address of local variable"
New GCC 12 warning. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'bgpd')
-rw-r--r--bgpd/bgp_pbr.c3
1 files changed, 3 insertions, 0 deletions
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(