Blame SOURCES/Prevent-uninitialized-read-in-error-path-of-XDR-cont.patch

472fdf
From 8a7fc8e280e31fd8c277adc4f74cc26c341a71b4 Mon Sep 17 00:00:00 2001
472fdf
From: Robbie Harwood <rharwood@redhat.com>
472fdf
Date: Tue, 12 Sep 2017 12:40:27 -0400
472fdf
Subject: [PATCH] Prevent uninitialized read in error path of XDR contexts
472fdf
472fdf
Signed-off-by: Robbie Harwood <rharwood@redhat.com>
472fdf
Reviewed-by: Simo Sorce <simo@redhat.com>
472fdf
Merges: #211
472fdf
(cherry picked from commit 8ba0f42f06bc7d0ed68cb2eb3ef2794fc860ac2d)
472fdf
---
472fdf
 proxy/src/client/gpm_common.c | 4 ++--
472fdf
 1 file changed, 2 insertions(+), 2 deletions(-)
472fdf
472fdf
diff --git a/proxy/src/client/gpm_common.c b/proxy/src/client/gpm_common.c
472fdf
index c65c69d..d0f99d6 100644
472fdf
--- a/proxy/src/client/gpm_common.c
472fdf
+++ b/proxy/src/client/gpm_common.c
472fdf
@@ -656,8 +656,8 @@ int gpm_make_call(int proc, union gp_rpc_arg *arg, union gp_rpc_res *res)
472fdf
 {
472fdf
     struct gpm_ctx *gpmctx;
472fdf
     gp_rpc_msg msg;
472fdf
-    XDR xdr_call_ctx;
472fdf
-    XDR xdr_reply_ctx;
472fdf
+    XDR xdr_call_ctx = {0};
472fdf
+    XDR xdr_reply_ctx = {0};
472fdf
     char *send_buffer = NULL;
472fdf
     char *recv_buffer = NULL;
472fdf
     uint32_t send_length;