diff options
Diffstat (limited to 'fs/cifs/connect.c')
| -rw-r--r-- | fs/cifs/connect.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index 469c3ddba463..4d8004ce5834 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c | |||
| @@ -3002,13 +3002,13 @@ CIFSTCon(unsigned int xid, struct cifsSesInfo *ses, | |||
| 3002 | #ifdef CONFIG_CIFS_WEAK_PW_HASH | 3002 | #ifdef CONFIG_CIFS_WEAK_PW_HASH |
| 3003 | if ((global_secflags & CIFSSEC_MAY_LANMAN) && | 3003 | if ((global_secflags & CIFSSEC_MAY_LANMAN) && |
| 3004 | (ses->server->secType == LANMAN)) | 3004 | (ses->server->secType == LANMAN)) |
| 3005 | calc_lanman_hash(tcon->password, ses->cryptKey, | 3005 | calc_lanman_hash(tcon->password, ses->server->cryptkey, |
| 3006 | ses->server->secMode & | 3006 | ses->server->secMode & |
| 3007 | SECMODE_PW_ENCRYPT ? true : false, | 3007 | SECMODE_PW_ENCRYPT ? true : false, |
| 3008 | bcc_ptr); | 3008 | bcc_ptr); |
| 3009 | else | 3009 | else |
| 3010 | #endif /* CIFS_WEAK_PW_HASH */ | 3010 | #endif /* CIFS_WEAK_PW_HASH */ |
| 3011 | SMBNTencrypt(tcon->password, ses->cryptKey, bcc_ptr); | 3011 | SMBNTencrypt(tcon->password, ses->server->cryptkey, bcc_ptr); |
| 3012 | 3012 | ||
| 3013 | bcc_ptr += CIFS_SESS_KEY_SIZE; | 3013 | bcc_ptr += CIFS_SESS_KEY_SIZE; |
| 3014 | if (ses->capabilities & CAP_UNICODE) { | 3014 | if (ses->capabilities & CAP_UNICODE) { |
