diff options
-rw-r--r-- | xlators/protocol/server/src/server-rpc-fops.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/xlators/protocol/server/src/server-rpc-fops.c b/xlators/protocol/server/src/server-rpc-fops.c index 54081625a5c..0ba4ffa6f94 100644 --- a/xlators/protocol/server/src/server-rpc-fops.c +++ b/xlators/protocol/server/src/server-rpc-fops.c @@ -4218,10 +4218,13 @@ server3_3_writev (rpcsvc_request_t *req) = req->msg[i]; } + len = 0; for (i = 0; i < state->payload_count; i++) { - state->size += state->payload_vector[i].iov_len; + len += state->payload_vector[i].iov_len; } + GF_ASSERT (state->size == len); + GF_PROTOCOL_DICT_UNSERIALIZE (frame->root->client->bound_xl, state->xdata, args.xdata.xdata_val, |