[CIFS] Fix oops when negotiating lanman and no password specified

Pointed out by Guenter Kukkukk

Signed-of-by: Steve French <sfrench@us.ibm.com>
(cherry picked from bbf33d512da608c7221fec42b56b9ef89c25a5ee commit)

+2 -1
+2 -1
fs/cifs/cifsencrypt.c
··· 277 return; 278 279 memset(password_with_pad, 0, CIFS_ENCPWD_SIZE); 280 - strncpy(password_with_pad, ses->password, CIFS_ENCPWD_SIZE); 281 282 if((ses->server->secMode & SECMODE_PW_ENCRYPT) == 0) 283 if(extended_security & CIFSSEC_MAY_PLNTXT) {
··· 277 return; 278 279 memset(password_with_pad, 0, CIFS_ENCPWD_SIZE); 280 + if(ses->password) 281 + strncpy(password_with_pad, ses->password, CIFS_ENCPWD_SIZE); 282 283 if((ses->server->secMode & SECMODE_PW_ENCRYPT) == 0) 284 if(extended_security & CIFSSEC_MAY_PLNTXT) {