summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_pbr.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2021-05-04 03:03:31 +0200
committerDonald Sharp <sharpd@nvidia.com>2021-05-04 03:03:31 +0200
commit645a1f1d5fd9d1d2ff60ff586c47a3d50983a9e5 (patch)
treeb0bb86ee606b8881b1a3eb3a0eea93529bb9736c /bgpd/bgp_pbr.c
parentMerge pull request #8601 from Fredi-raspall/pr_fix_lfa_debug (diff)
downloadfrr-645a1f1d5fd9d1d2ff60ff586c47a3d50983a9e5.tar.xz
frr-645a1f1d5fd9d1d2ff60ff586c47a3d50983a9e5.zip
bgpd: Prevent test against uninited data
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to '')
-rw-r--r--bgpd/bgp_pbr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bgpd/bgp_pbr.c b/bgpd/bgp_pbr.c
index 2c6c2c386..8b27b39c4 100644
--- a/bgpd/bgp_pbr.c
+++ b/bgpd/bgp_pbr.c
@@ -2684,6 +2684,7 @@ static void bgp_pbr_handle_entry(struct bgp *bgp, struct bgp_path_info *path,
struct bgp_pbr_or_filter bpof;
struct bgp_pbr_val_mask bpvm;
+ memset(&range, 0, sizeof(range));
memset(&nh, 0, sizeof(struct nexthop));
memset(&bpf, 0, sizeof(struct bgp_pbr_filter));
memset(&bpof, 0, sizeof(struct bgp_pbr_or_filter));