diff options
author | Stefan Metzmacher <metze@samba.org> | 2012-08-05 14:58:57 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2012-08-05 20:55:36 +0200 |
commit | 048c8d3db4feda04d7a4885ca83d5f5905760463 (patch) | |
tree | 14f7184bd093ebba0aa3fbe3d5bb31b6040b3d49 | |
parent | 8cf817d7fd4cffe2d8ab207a12f8ec8df3c0c60f (diff) | |
download | samba-048c8d3db4feda04d7a4885ca83d5f5905760463.tar.gz samba-048c8d3db4feda04d7a4885ca83d5f5905760463.tar.bz2 samba-048c8d3db4feda04d7a4885ca83d5f5905760463.zip |
s3:smb2_glue: make use of SMBD_SMB2_IN_HDR_PTR()
metze
-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) { |