diff options
author | Robbie Harwood <rharwood@redhat.com> | 2015-10-21 12:46:29 -0400 |
---|---|---|
committer | Simo Sorce <simo@redhat.com> | 2015-10-21 17:00:19 -0400 |
commit | 959309797916214cc4f0cd8832bcdbcc3d62dc0c (patch) | |
tree | ae61659a4403d63508c2e7447ad93e75e30d99fa | |
parent | 0dae2c75f774519507c90bd4c3e4a860e1c84ab8 (diff) | |
download | gss-proxy-959309797916214cc4f0cd8832bcdbcc3d62dc0c.tar.gz gss-proxy-959309797916214cc4f0cd8832bcdbcc3d62dc0c.tar.xz gss-proxy-959309797916214cc4f0cd8832bcdbcc3d62dc0c.zip |
Clear message structure before decoding into it
This resolves a segfault appearing on ARM.
Ticket: https://bugzilla.redhat.com/show_bug.cgi?id=1235902
Signed-off-by: Robbie Harwood <rharwood@redhat.com>
Reviewed-by: Simo Sorce <simo@redhat.com>
-rw-r--r-- | proxy/src/client/gpm_common.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/proxy/src/client/gpm_common.c b/proxy/src/client/gpm_common.c index 6d626e8..93d6c24 100644 --- a/proxy/src/client/gpm_common.c +++ b/proxy/src/client/gpm_common.c @@ -454,6 +454,7 @@ int gpm_make_call(int proc, union gp_rpc_arg *arg, union gp_rpc_res *res) sockgrab = false; /* decode header */ + memset(&msg, 0, sizeof(gp_rpc_msg)); xdrok = xdr_gp_rpc_msg(&xdr_reply_ctx, &msg); if (!xdrok) { ret = EINVAL; |