diff options
Diffstat (limited to 'xlators/protocol/client/src/client-rpc-fops.c')
| -rw-r--r-- | xlators/protocol/client/src/client-rpc-fops.c | 9 | 
1 files changed, 5 insertions, 4 deletions
diff --git a/xlators/protocol/client/src/client-rpc-fops.c b/xlators/protocol/client/src/client-rpc-fops.c index c122941cf4e..8085aec0765 100644 --- a/xlators/protocol/client/src/client-rpc-fops.c +++ b/xlators/protocol/client/src/client-rpc-fops.c @@ -3166,7 +3166,8 @@ client3_3_compound_cbk (struct rpc_req *req, struct iovec *iov, int count,          dict_t                  *xdata           = NULL;          clnt_local_t            *local           = NULL;          int                     op_errno         = 0; -        int                     i,length         = 0; +        int                     i                = 0; +        int                     length           = 0;          int                     ret              = -1;          this = THIS; @@ -3187,12 +3188,12 @@ client3_3_compound_cbk (struct rpc_req *req, struct iovec *iov, int count,                  goto out;          } +        length =  local->length; +          GF_PROTOCOL_DICT_UNSERIALIZE (this, xdata, (rsp.xdata.xdata_val),                                        (rsp.xdata.xdata_len), rsp.op_ret,                                         rsp.op_errno, out); -        length =  local->length; -          args_cbk = compound_args_cbk_alloc (length, xdata);          if (!args_cbk) {                  op_errno = ENOMEM; @@ -3215,7 +3216,7 @@ out:          free (rsp.xdata.xdata_val); -        client_compound_rsp_cleanup (&rsp, local->length); +        client_compound_rsp_cleanup (&rsp, length);          if (xdata)                  dict_unref (xdata);  | 
