Skip to content

Commit

Permalink
bgpd: fix "storing the address of local variable"
Browse files Browse the repository at this point in the history
New GCC 12 warning.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
(cherry picked from commit c34a7af)
  • Loading branch information
eqvinox authored and mergify[bot] committed Nov 8, 2022
1 parent dd63a54 commit cc5026a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bgpd/bgp_pbr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit cc5026a

Please sign in to comment.