From d58107726c233b634ffa31ca404c7d55dbdf8f69 Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Mon, 11 Jun 2018 13:03:58 +0530 Subject: protocol/server: Fix xdata leak in seek fop Change-Id: I6125283ed22c04564f0b77bb7a50579a83e02eb0 fixes: bz#1590133 Signed-off-by: Pranith Kumar K (cherry picked from commit fd5b48ea0afd907deb08604415bee14ab65f378b) --- xlators/protocol/server/src/server-rpc-fops.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'xlators') 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); -- cgit