Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 66abda5e authored by Steve French's avatar Steve French
Browse files

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



Pointed out by Guenter Kukkukk

Signed-of-by: default avatarSteve French <sfrench@us.ibm.com>
(cherry picked from bbf33d512da608c7221fec42b56b9ef89c25a5ee commit)
parent 7ee1af76
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -277,6 +277,7 @@ void calc_lanman_hash(struct cifsSesInfo * ses, char * lnm_session_key)
		return;

	memset(password_with_pad, 0, CIFS_ENCPWD_SIZE);
	if(ses->password)
		strncpy(password_with_pad, ses->password, CIFS_ENCPWD_SIZE);

	if((ses->server->secMode & SECMODE_PW_ENCRYPT) == 0)