diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2022-11-04 12:33:28 +0100 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2022-11-04 12:34:00 +0100 |
commit | c34a7afc743c52e1081f10792047cdf73e9cba2c (patch) | |
tree | 1c9e6b4573a3c65cc596ccad883d8e596671f57d /bgpd | |
parent | Merge pull request #12196 from opensourcerouting/xref-vtysh (diff) | |
download | frr-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.c | 3 |
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( |