summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPranith Kumar K <pkarampu@redhat.com>2018-06-11 13:03:58 +0530
committerRaghavendra G <rgowdapp@redhat.com>2018-06-11 12:50:54 +0000
commitfd5b48ea0afd907deb08604415bee14ab65f378b (patch)
tree4fe3ea2ab277952f1bdc20250f998997f13d067c
parent319aa4b0754d1f3859b180f9a416be20143d4ec1 (diff)
protocol/server: Fix xdata leak in seek fop
Change-Id: I6125283ed22c04564f0b77bb7a50579a83e02eb0 fixes: bz#1589691 Signed-off-by: Pranith Kumar K <pkarampu@redhat.com>
-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 7554984f80e..30f288742a2 100644
--- a/xlators/protocol/server/src/server-rpc-fops.c
+++ b/xlators/protocol/server/src/server-rpc-fops.c
@@ -3834,7 +3834,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)
@@ -3854,7 +3853,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);