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:
2e65502
)
[CIFS] Turn off Unicode during session establishment for plaintext authentication
author
Steve French
<
[email protected]
>
Thu, 28 Aug 2008 15:32:22 +0000
(15:32 +0000)
committer
Steve French
<
[email protected]
>
Thu, 28 Aug 2008 15:32:22 +0000
(15:32 +0000)
LANMAN session setup did not support Unicode (after session setup, unicode can
still be used though).
Fixes samba bug# 5319
CC: Jeff Layton <
[email protected]
>
CC: Stable Kernel <
[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 b537fad3bf50684c2b3405df74a69ea9dd9e29a3..252fdc0567f1aa186f36f8c68d83f259d6db4ee0 100644
(file)
--- a/
fs/cifs/sess.c
+++ b/
fs/cifs/sess.c
@@
-409,6
+409,8
@@
CIFS_SessSetup(unsigned int xid, struct cifsSesInfo *ses, int first_time,
#ifdef CONFIG_CIFS_WEAK_PW_HASH
char lnm_session_key[CIFS_SESS_KEY_SIZE];
+ pSMB->req.hdr.Flags2 &= ~SMBFLG2_UNICODE;
+
/* no capabilities flags in old lanman negotiation */
pSMB->old_req.PasswordLength = cpu_to_le16(CIFS_SESS_KEY_SIZE);