From 7327310754045e8a2029098ce76a0e677c590460 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sun, 5 Aug 2012 16:35:08 +0200 Subject: [PATCH] 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 Autobuild-Date(master): Sun Aug 5 20:00:26 CEST 2012 on sn-devel-104 --- source3/smbd/smb2_server.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source3/smbd/smb2_server.c b/source3/smbd/smb2_server.c index 979a179c1d3..3fc5690c3c2 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); -- 2.11.4.GIT