summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-08-05 14:55:58 +0200
committerStefan Metzmacher <metze@samba.org>2012-08-05 20:55:35 +0200
commit88a34026f5fd87d8b4a3094a68968686cca8fcf0 (patch)
tree680bd8fe62135905346561207818bca48d6d175b
parent52805c4169bbb8c9ac98a1851eaedb34f3f21523 (diff)
downloadsamba-88a34026f5fd87d8b4a3094a68968686cca8fcf0.tar.gz
samba-88a34026f5fd87d8b4a3094a68968686cca8fcf0.tar.bz2
samba-88a34026f5fd87d8b4a3094a68968686cca8fcf0.zip
s3:smb2_flush: make use of SMBD_SMB2_IN_BODY_PTR()
metze
-rw-r--r--source3/smbd/smb2_flush.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/smbd/smb2_flush.c b/source3/smbd/smb2_flush.c
index 4f314cd0ce..00a7158ad9 100644
--- a/source3/smbd/smb2_flush.c
+++ b/source3/smbd/smb2_flush.c
@@ -35,7 +35,6 @@ NTSTATUS smbd_smb2_request_process_flush(struct smbd_smb2_request *req)
{
NTSTATUS status;
const uint8_t *inbody;
- int i = req->current_idx;
uint64_t in_file_id_persistent;
uint64_t in_file_id_volatile;
struct files_struct *in_fsp;
@@ -45,7 +44,7 @@ NTSTATUS smbd_smb2_request_process_flush(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_file_id_persistent = BVAL(inbody, 0x08);
in_file_id_volatile = BVAL(inbody, 0x10);