diff options
Diffstat (limited to 'fs/cifs')
-rw-r--r-- | fs/cifs/connect.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index 4cb8450e081b..cdb1aaf295b1 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c | |||
@@ -3696,6 +3696,12 @@ CIFSTCon(const unsigned int xid, struct cifs_ses *ses, | |||
3696 | #endif /* CIFS_WEAK_PW_HASH */ | 3696 | #endif /* CIFS_WEAK_PW_HASH */ |
3697 | rc = SMBNTencrypt(tcon->password, ses->server->cryptkey, | 3697 | rc = SMBNTencrypt(tcon->password, ses->server->cryptkey, |
3698 | bcc_ptr, nls_codepage); | 3698 | bcc_ptr, nls_codepage); |
3699 | if (rc) { | ||
3700 | cifs_dbg(FYI, "%s Can't generate NTLM rsp. Error: %d\n", | ||
3701 | __func__, rc); | ||
3702 | cifs_buf_release(smb_buffer); | ||
3703 | return rc; | ||
3704 | } | ||
3699 | 3705 | ||
3700 | bcc_ptr += CIFS_AUTH_RESP_SIZE; | 3706 | bcc_ptr += CIFS_AUTH_RESP_SIZE; |
3701 | if (ses->capabilities & CAP_UNICODE) { | 3707 | if (ses->capabilities & CAP_UNICODE) { |