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

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