Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0820e15a authored by Steve French's avatar Steve French
Browse files

[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: default avatarSteve French <sfrench@us.ibm.com>
parent 0f36b018
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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 */