提交 0820e15a 编写于 作者: S Steve French

[CIFS] Do not zero non-existent iovec in SendReceive response processing.

Could cause memory leak in some readpaths depending on what junk followed it in the stack.
Signed-off-by: NSteve French <sfrench@us.ibm.com>
上级 0f36b018
......@@ -498,7 +498,6 @@ SendReceive2(const unsigned int xid, struct cifsSesInfo *ses,
else
*pRespBufType = CIFS_SMALL_BUFFER;
iov[0].iov_len = receive_len + 4;
iov[1].iov_len = 0;
dump_smb(midQ->resp_buf, 80);
/* convert the length into a more usable form */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册