diff options
author | Pranith Kumar K <pkarampu@redhat.com> | 2018-06-11 13:03:58 +0530 |
---|---|---|
committer | Pranith Kumar Karampuri <pkarampu@redhat.com> | 2018-06-12 07:07:17 +0000 |
commit | d58107726c233b634ffa31ca404c7d55dbdf8f69 (patch) | |
tree | 74d2784170bcc13315e63cb4670a6621105a2a8b /xlators | |
parent | 0facdfa0e9df2ebdc160c766c9a3d489e03eb83e (diff) | |
download | glusterfs-d58107726c233b634ffa31ca404c7d55dbdf8f69.tar.gz glusterfs-d58107726c233b634ffa31ca404c7d55dbdf8f69.tar.xz glusterfs-d58107726c233b634ffa31ca404c7d55dbdf8f69.zip |
protocol/server: Fix xdata leak in seek fop
Change-Id: I6125283ed22c04564f0b77bb7a50579a83e02eb0
fixes: bz#1590133
Signed-off-by: Pranith Kumar K <pkarampu@redhat.com>
(cherry picked from commit fd5b48ea0afd907deb08604415bee14ab65f378b)
Diffstat (limited to 'xlators')
-rw-r--r-- | xlators/protocol/server/src/server-rpc-fops.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/xlators/protocol/server/src/server-rpc-fops.c b/xlators/protocol/server/src/server-rpc-fops.c index 91d5c03034..4c98339993 100644 --- a/xlators/protocol/server/src/server-rpc-fops.c +++ b/xlators/protocol/server/src/server-rpc-fops.c @@ -3805,7 +3805,6 @@ server3_3_seek (rpcsvc_request_t *req) gfs3_seek_req args = {{0,},}; int ret = -1; int op_errno = 0; - dict_t *xdata = NULL; xlator_t *bound_xl = NULL; if (!req) @@ -3825,7 +3824,7 @@ server3_3_seek (rpcsvc_request_t *req) memcpy(state->resolve.gfid, args.gfid, 16); bound_xl = frame->root->client->bound_xl; - GF_PROTOCOL_DICT_UNSERIALIZE (bound_xl, xdata, + GF_PROTOCOL_DICT_UNSERIALIZE (bound_xl, state->xdata, args.xdata.xdata_val, args.xdata.xdata_len, ret, op_errno, out); |