mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 20:13:53 +00:00
bgpd: Another call path with uninited data
Prevent another call path that uses uninited data in bgp_pbr.c This was found through more clang sa runs. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
48c2039199
commit
60031a55f6
@ -2034,6 +2034,9 @@ static void bgp_pbr_icmp_action(struct bgp *bgp, struct bgp_path_info *path,
|
|||||||
return;
|
return;
|
||||||
if (bpf->protocol != IPPROTO_ICMP)
|
if (bpf->protocol != IPPROTO_ICMP)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
memset(&srcp, 0, sizeof(srcp));
|
||||||
|
memset(&dstp, 0, sizeof(dstp));
|
||||||
bpf->src_port = &srcp;
|
bpf->src_port = &srcp;
|
||||||
bpf->dst_port = &dstp;
|
bpf->dst_port = &dstp;
|
||||||
/* parse icmp type and lookup appropriate icmp code
|
/* parse icmp type and lookup appropriate icmp code
|
||||||
|
Loading…
Reference in New Issue
Block a user