s3:smb2_server: use 'i' instead of '1' as vector index in smbd_smb2_request_pending_t...
authorStefan Metzmacher <metze@samba.org>
Sun, 5 Aug 2012 14:35:08 +0000 (16:35 +0200)
committerStefan Metzmacher <metze@samba.org>
Sun, 5 Aug 2012 18:00:26 +0000 (20:00 +0200)
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

source3/smbd/smb2_server.c

index 979a179c1d3c3328ad93185957ddeff6a9bfffe5..3fc5690c3c21d9e2a977b1327015365e0bf0b07c 100644 (file)
@@ -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);