summaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
authorVijay Bellur <vijay@gluster.com>2011-09-19 22:01:13 +0530
committerVijay Bellur <vijay@gluster.com>2011-09-19 22:00:08 -0700
commite0178776546f06646c11bcb1ea345f82436d73aa (patch)
treed343652c4326ce708e00a86796269467d33b8357 /rpc
parente163bc5b3ab062e3cb22b0386dbe056ab4a54952 (diff)
rpc:memcpy data of right size to auth params
Change-Id: I6999e0a1463ee3475f7607990337326b3f008538 BUG: 3587 Reviewed-on: http://review.gluster.com/464 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Amar Tumballi <amar@gluster.com>
Diffstat (limited to 'rpc')
-rw-r--r--rpc/rpc-lib/src/rpc-clnt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpc/rpc-lib/src/rpc-clnt.c b/rpc/rpc-lib/src/rpc-clnt.c
index 0cf7fe969..b2ea58004 100644
--- a/rpc/rpc-lib/src/rpc-clnt.c
+++ b/rpc/rpc-lib/src/rpc-clnt.c
@@ -1234,7 +1234,7 @@ rpc_clnt_record (struct rpc_clnt *clnt, call_frame_t *call_frame,
", gid: %d, owner: %"PRId64,
au.pid, au.uid, au.gid, au.lk_owner);
- memcpy (au.groups, call_frame->root->groups, 16);
+ memcpy (au.groups, call_frame->root->groups, sizeof (au.groups));
//rpc_transport_get_myname (clnt->conn.trans, myname, UNIX_PATH_MAX);
//au.aup_machname = myname;