diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/smb2_glue.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/source3/smbd/smb2_glue.c b/source3/smbd/smb2_glue.c index d9d8f9a01c..1b2b4dd693 100644 --- a/source3/smbd/smb2_glue.c +++ b/source3/smbd/smb2_glue.c @@ -26,10 +26,7 @@ struct smb_request *smbd_smb2_fake_smb_request(struct smbd_smb2_request *req) { struct smb_request *smbreq; - const uint8_t *inhdr; - int i = req->current_idx; - - inhdr = (const uint8_t *)req->in.vector[i+0].iov_base; + const uint8_t *inhdr = SMBD_SMB2_IN_HDR_PTR(req); smbreq = talloc_zero(req, struct smb_request); if (smbreq == NULL) { |