1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

s3:smb2_server: don't try to update req->in.vector[0] in smbd_smb2_request_pending_queue()

req->in.vector[0] is reserved for the transport and might be removed in future.
This is currently always { NULL, 0 }, as it's not used, by our
transport layer code. The SMB2 layer should never touch this!

metze
This commit is contained in:
Stefan Metzmacher 2012-08-08 12:50:22 +02:00
parent 51dd39b2cf
commit 9f51d610d2

View File

@ -1232,9 +1232,6 @@ NTSTATUS smbd_smb2_request_pending_queue(struct smbd_smb2_request *req,
sizeof(req->in.vector[0])*SMBD_SMB2_NUM_IOV_PER_REQ);
req->in.vector_count = req->current_idx + SMBD_SMB2_NUM_IOV_PER_REQ;
/* Reset the new in size. */
smb2_setup_nbt_length(req->in.vector, req->in.vector_count);
/* Re-arrange the out.vectors. */
memmove(&req->out.vector[req->current_idx],
&req->out.vector[i],