summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-08-05 14:25:48 +0200
committerStefan Metzmacher <metze@samba.org>2012-08-05 16:39:30 +0200
commit056070f395f4c20bac17dac99518e9b84366817e (patch)
tree85c432c3c112207c5ff1f4d33866c48606cc7abf /source3/smbd
parent86ee5909017880fc8771a62a495a1780a3517d64 (diff)
downloadsamba-056070f395f4c20bac17dac99518e9b84366817e.tar.gz
s3:smb2_read: remove unused in_smbpid
metze
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/smb2_read.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/source3/smbd/smb2_read.c b/source3/smbd/smb2_read.c
index 289cbc02084..7fdbfaab002 100644
--- a/source3/smbd/smb2_read.c
+++ b/source3/smbd/smb2_read.c
@@ -31,7 +31,6 @@ static struct tevent_req *smbd_smb2_read_send(TALLOC_CTX *mem_ctx,
struct tevent_context *ev,
struct smbd_smb2_request *smb2req,
struct files_struct *in_fsp,
- uint32_t in_smbpid,
uint32_t in_length,
uint64_t in_offset,
uint32_t in_minimum,
@@ -45,10 +44,8 @@ static void smbd_smb2_request_read_done(struct tevent_req *subreq);
NTSTATUS smbd_smb2_request_process_read(struct smbd_smb2_request *req)
{
NTSTATUS status;
- const uint8_t *inhdr;
const uint8_t *inbody;
int i = req->current_idx;
- uint32_t in_smbpid;
uint32_t in_length;
uint64_t in_offset;
uint64_t in_file_id_persistent;
@@ -62,11 +59,8 @@ NTSTATUS smbd_smb2_request_process_read(struct smbd_smb2_request *req)
if (!NT_STATUS_IS_OK(status)) {
return smbd_smb2_request_error(req, status);
}
- inhdr = (const uint8_t *)req->in.vector[i+0].iov_base;
inbody = (const uint8_t *)req->in.vector[i+1].iov_base;
- in_smbpid = IVAL(inhdr, SMB2_HDR_PID);
-
in_length = IVAL(inbody, 0x04);
in_offset = BVAL(inbody, 0x08);
in_file_id_persistent = BVAL(inbody, 0x10);
@@ -94,7 +88,6 @@ NTSTATUS smbd_smb2_request_process_read(struct smbd_smb2_request *req)
subreq = smbd_smb2_read_send(req, req->sconn->ev_ctx,
req, in_fsp,
- in_smbpid,
in_length,
in_offset,
in_minimum_count,
@@ -379,7 +372,6 @@ static struct tevent_req *smbd_smb2_read_send(TALLOC_CTX *mem_ctx,
struct tevent_context *ev,
struct smbd_smb2_request *smb2req,
struct files_struct *fsp,
- uint32_t in_smbpid,
uint32_t in_length,
uint64_t in_offset,
uint32_t in_minimum,