aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/connect.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/cifs/connect.c')
-rw-r--r--fs/cifs/connect.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c
index 6107ee42b093..3a84a375cb6f 100644
--- a/fs/cifs/connect.c
+++ b/fs/cifs/connect.c
@@ -3533,7 +3533,10 @@ CIFSTCon(unsigned int xid, struct cifsSesInfo *ses,
3533#ifdef CONFIG_CIFS_WEAK_PW_HASH 3533#ifdef CONFIG_CIFS_WEAK_PW_HASH
3534 if ((extended_security & CIFSSEC_MAY_LANMAN) && 3534 if ((extended_security & CIFSSEC_MAY_LANMAN) &&
3535 (ses->server->secType == LANMAN)) 3535 (ses->server->secType == LANMAN))
3536 calc_lanman_hash(ses, bcc_ptr); 3536 calc_lanman_hash(ses->password, ses->server->cryptKey,
3537 ses->server->secMode &
3538 SECMODE_PW_ENCRYPT ? true : false,
3539 bcc_ptr);
3537 else 3540 else
3538#endif /* CIFS_WEAK_PW_HASH */ 3541#endif /* CIFS_WEAK_PW_HASH */
3539 SMBNTencrypt(ses->password, 3542 SMBNTencrypt(ses->password,