projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ca3a99
)
CIFS: Fix possible freed pointer dereference in CIFS_SessSetup
author
Pavel Shilovsky
<
[email protected]
>
Tue, 25 Sep 2012 07:00:08 +0000
(11:00 +0400)
committer
Steve French
<
[email protected]
>
Thu, 27 Sep 2012 03:15:24 +0000
(22:15 -0500)
Signed-off-by: Pavel Shilovsky <
[email protected]
>
Signed-off-by: Steve French <
[email protected]
>
fs/cifs/sess.c
patch
|
blob
|
history
diff --git
a/fs/cifs/sess.c
b/fs/cifs/sess.c
index 382c06d01b385bf618de01f0cb20a65dd25d38c0..76809f4d34284420934d85374c09a5093a5d75f3 100644
(file)
--- a/
fs/cifs/sess.c
+++ b/
fs/cifs/sess.c
@@
-876,7
+876,8
@@
ssetup_ntlmssp_authenticate:
pSMB = (SESSION_SETUP_ANDX *)iov[0].iov_base;
smb_buf = (struct smb_hdr *)iov[0].iov_base;
- if ((type == RawNTLMSSP) && (smb_buf->Status.CifsError ==
+ if ((type == RawNTLMSSP) && (resp_buf_type != CIFS_NO_BUFFER) &&
+ (smb_buf->Status.CifsError ==
cpu_to_le32(NT_STATUS_MORE_PROCESSING_REQUIRED))) {
if (phase != NtLmNegotiate) {
cERROR(1, "Unexpected more processing error");