summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-08-05 16:35:08 +0200
committerStefan Metzmacher <metze@samba.org>2012-08-05 20:00:26 +0200
commit7327310754045e8a2029098ce76a0e677c590460 (patch)
tree793153c22695e7f0547a2c0d6b33c6990b2674df
parent1a0c40f53748198342089b567183a24f9e5e1639 (diff)
downloadsamba-7327310754045e8a2029098ce76a0e677c590460.tar.gz
samba-7327310754045e8a2029098ce76a0e677c590460.tar.bz2
samba-7327310754045e8a2029098ce76a0e677c590460.zip
s3:smb2_server: use 'i' instead of '1' as vector index in smbd_smb2_request_pending_timer()
If we reach this code i is currently always 1, but it's easier to unstand this way. metze Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Sun Aug 5 20:00:26 CEST 2012 on sn-devel-104
-rw-r--r--source3/smbd/smb2_server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/smb2_server.c b/source3/smbd/smb2_server.c
index 979a179c1d..3fc5690c3c 100644
--- a/source3/smbd/smb2_server.c
+++ b/source3/smbd/smb2_server.c
@@ -1106,8 +1106,8 @@ static void smbd_smb2_request_pending_timer(struct tevent_context *ev,
TALLOC_FREE(req->async_te);
/* Ensure our final reply matches the interim one. */
- inhdr = (const uint8_t *)req->in.vector[1].iov_base;
- outhdr = (uint8_t *)req->out.vector[1].iov_base;
+ inhdr = (const uint8_t *)req->in.vector[i].iov_base;
+ outhdr = (uint8_t *)req->out.vector[i].iov_base;
flags = IVAL(outhdr, SMB2_HDR_FLAGS);
message_id = BVAL(outhdr, SMB2_HDR_MESSAGE_ID);