]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: Ensure that struct prefix_rd rd is zero'ed out
authorDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 10 Oct 2019 12:52:13 +0000 (08:52 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 15 Oct 2019 17:17:48 +0000 (13:17 -0400)
We are passing around the created rd, Just make sure that
the data is zero'ed out.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
bgpd/bgp_mplsvpn.c

index 1156810510d3c744ba416bd3702032b22412df6a..e8d306256167120957b1550df3bc215023a75fd2 100644 (file)
@@ -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;