diff options
-rw-r--r-- | source3/smbd/smb2_read.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/smbd/smb2_read.c b/source3/smbd/smb2_read.c index 7fdbfaab00..ba352f7c25 100644 --- a/source3/smbd/smb2_read.c +++ b/source3/smbd/smb2_read.c @@ -45,7 +45,6 @@ NTSTATUS smbd_smb2_request_process_read(struct smbd_smb2_request *req) { NTSTATUS status; const uint8_t *inbody; - int i = req->current_idx; uint32_t in_length; uint64_t in_offset; uint64_t in_file_id_persistent; @@ -59,7 +58,7 @@ NTSTATUS smbd_smb2_request_process_read(struct smbd_smb2_request *req) if (!NT_STATUS_IS_OK(status)) { return smbd_smb2_request_error(req, status); } - inbody = (const uint8_t *)req->in.vector[i+1].iov_base; + inbody = SMBD_SMB2_IN_BODY_PTR(req); in_length = IVAL(inbody, 0x04); in_offset = BVAL(inbody, 0x08); |