projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ee1af7
)
[CIFS] Fix oops when negotiating lanman and no password specified
author
Steve French
<sfrench@us.ibm.com>
Fri, 11 Aug 2006 16:52:09 +0000
(16:52 +0000)
committer
Steve French
<sfrench@us.ibm.com>
Fri, 11 Aug 2006 21:29:13 +0000
(21:29 +0000)
Pointed out by Guenter Kukkukk
Signed-of-by: Steve French <sfrench@us.ibm.com>
(cherry picked from
bbf33d512da608c7221fec42b56b9ef89c25a5ee
commit)
fs/cifs/cifsencrypt.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/cifs/cifsencrypt.c
b/fs/cifs/cifsencrypt.c
index a89efaf78a266ef2d7a4c01d8f5876c5969504dc..4bc250b2d9fc19aa27aea309b900b186b95a2602 100644
(file)
--- a/
fs/cifs/cifsencrypt.c
+++ b/
fs/cifs/cifsencrypt.c
@@
-277,7
+277,8
@@
void calc_lanman_hash(struct cifsSesInfo * ses, char * lnm_session_key)
return;
memset(password_with_pad, 0, CIFS_ENCPWD_SIZE);
- strncpy(password_with_pad, ses->password, CIFS_ENCPWD_SIZE);
+ if(ses->password)
+ strncpy(password_with_pad, ses->password, CIFS_ENCPWD_SIZE);
if((ses->server->secMode & SECMODE_PW_ENCRYPT) == 0)
if(extended_security & CIFSSEC_MAY_PLNTXT) {