summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt
diff options
context:
space:
mode:
authorYaniv Kaul <ykaul@redhat.com>2018-08-16 14:18:15 +0300
committerAmar Tumballi <amarts@redhat.com>2018-08-23 04:19:46 +0000
commit2ccade56483a5e511b8f8089c7f3b27080484b76 (patch)
treeb0b43ef02278727fad81241ca3a88b7f55752a38 /xlators/mgmt
parent8171d9d5a2a8129eaa984d8ed5a9397767bea463 (diff)
xlators/mgmt/glusterd/src/glusterd-handshake.c : reduce size or re-scope message variable
The the error and/or message variable was either: - Reduced in size - from 2048 bytes to 64 bytes, for example. or - Changed in scope - defined in a smaller scope. Compile-tested only! Change-Id: I9c609415667844ee034b7eb2b67bdbc19d38819d updates: bz#1193929 Signed-off-by: Yaniv Kaul <ykaul@redhat.com>
Diffstat (limited to 'xlators/mgmt')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-handshake.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-handshake.c b/xlators/mgmt/glusterd/src/glusterd-handshake.c
index 8c109f0f981..ce0304a3d73 100644
--- a/xlators/mgmt/glusterd/src/glusterd-handshake.c
+++ b/xlators/mgmt/glusterd/src/glusterd-handshake.c
@@ -1857,7 +1857,7 @@ __glusterd_mgmt_hndsk_version_ack_cbk (struct rpc_req *req, struct iovec *iov,
call_frame_t *frame = NULL;
glusterd_peerinfo_t *peerinfo = NULL;
glusterd_peerctx_t *peerctx = NULL;
- char msg[1024] = {0,};
+ char msg[64] = {0,};
this = THIS;
frame = myframe;
@@ -1962,7 +1962,7 @@ __glusterd_mgmt_hndsk_version_cbk (struct rpc_req *req, struct iovec *iov,
dict_t *dict = NULL;
dict_t *rsp_dict = NULL;
glusterd_conf_t *conf = NULL;
- char msg[1024] = {0,};
+ char msg[64] = {0,};
this = THIS;
conf = this->private;