summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPranith Kumar K <pkarampu@redhat.com>2018-06-11 13:03:58 +0530
committerPranith Kumar Karampuri <pkarampu@redhat.com>2018-06-12 07:08:02 +0000
commit2cca9b4f1ca853c20be43213400f9a8803a71a7d (patch)
treec80bfeebbad194c118e467301f5552dd7b6b5ad5
parentacd9a863e80a7f56e25b3ed151a4711126de3208 (diff)
protocol/server: Fix xdata leak in seek fop
Change-Id: I6125283ed22c04564f0b77bb7a50579a83e02eb0 fixes: bz#1590128 Signed-off-by: Pranith Kumar K <pkarampu@redhat.com> (cherry picked from commit fd5b48ea0afd907deb08604415bee14ab65f378b)
-rw-r--r--xlators/protocol/server/src/server-rpc-fops.c3
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 c015a24..7d49053 100644
--- a/xlators/protocol/server/src/server-rpc-fops.c
+++ b/xlators/protocol/server/src/server-rpc-fops.c
@@ -3833,7 +3833,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)
@@ -3853,7 +3852,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);