From ef1af5e5302235fa7e66564edb8f830f50632b30 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Thu, 10 Oct 2019 08:52:13 -0400 Subject: [PATCH] bgpd: Ensure that struct prefix_rd rd is zero'ed out We are passing around the created rd, Just make sure that the data is zero'ed out. Signed-off-by: Donald Sharp --- bgpd/bgp_mplsvpn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bgpd/bgp_mplsvpn.c b/bgpd/bgp_mplsvpn.c index c81abd643ff7..1d1536141610 100644 --- a/bgpd/bgp_mplsvpn.c +++ b/bgpd/bgp_mplsvpn.c @@ -109,7 +109,7 @@ int bgp_nlri_parse_vpn(struct peer *peer, struct attr *attr, uint16_t type; struct rd_as rd_as; struct rd_ip rd_ip; - struct prefix_rd prd; + struct prefix_rd prd = {0}; mpls_label_t label = {0}; afi_t afi; safi_t safi;