diff options
author | Stefan Metzmacher <metze@samba.org> | 2012-08-05 14:55:58 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2012-08-05 20:55:35 +0200 |
commit | 8cf817d7fd4cffe2d8ab207a12f8ec8df3c0c60f (patch) | |
tree | ce0dfa06a1c3f13e9ec7b7e7a026b3d4cb98c364 /source3 | |
parent | 121dbd6210c00d3884685351d50c2ce1d0e486e9 (diff) | |
download | samba-8cf817d7fd4cffe2d8ab207a12f8ec8df3c0c60f.tar.gz samba-8cf817d7fd4cffe2d8ab207a12f8ec8df3c0c60f.tar.bz2 samba-8cf817d7fd4cffe2d8ab207a12f8ec8df3c0c60f.zip |
s3:smb2_read: make use of SMBD_SMB2_IN_BODY_PTR()
metze
Diffstat (limited to 'source3')
-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); |