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:34 +0200 |
commit | 52805c4169bbb8c9ac98a1851eaedb34f3f21523 (patch) | |
tree | 8ab80ecaf8d0d5ae30850426218b9ce895c1e88b /source3/smbd | |
parent | 21742c3693f85222fdf7573fa194a1ed17b7e677 (diff) | |
download | samba-52805c4169bbb8c9ac98a1851eaedb34f3f21523.tar.gz samba-52805c4169bbb8c9ac98a1851eaedb34f3f21523.tar.bz2 samba-52805c4169bbb8c9ac98a1851eaedb34f3f21523.zip |
s3:smb2_close: make use of SMBD_SMB2_IN_BODY_PTR()
metze
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/smb2_close.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/smbd/smb2_close.c b/source3/smbd/smb2_close.c index 6d93278e52..ee168c5466 100644 --- a/source3/smbd/smb2_close.c +++ b/source3/smbd/smb2_close.c @@ -45,7 +45,6 @@ static void smbd_smb2_request_close_done(struct tevent_req *subreq); NTSTATUS smbd_smb2_request_process_close(struct smbd_smb2_request *req) { const uint8_t *inbody; - int i = req->current_idx; uint16_t in_flags; uint64_t in_file_id_persistent; uint64_t in_file_id_volatile; @@ -57,7 +56,7 @@ NTSTATUS smbd_smb2_request_process_close(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_flags = SVAL(inbody, 0x02); in_file_id_persistent = BVAL(inbody, 0x08); |