git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'core/xen' into x86/xen
[safe/jmp/linux-2.6]
/
fs
/
cifs
/
cifsencrypt.c
diff --git
a/fs/cifs/cifsencrypt.c
b/fs/cifs/cifsencrypt.c
index
83fd40d
..
bd5f13d
100644
(file)
--- a/
fs/cifs/cifsencrypt.c
+++ b/
fs/cifs/cifsencrypt.c
@@
-294,6
+294,7
@@
void calc_lanman_hash(struct cifsSesInfo *ses, char *lnm_session_key)
if ((ses->server->secMode & SECMODE_PW_ENCRYPT) == 0)
if (extended_security & CIFSSEC_MAY_PLNTXT) {
+ memset(lnm_session_key, 0, CIFS_SESS_KEY_SIZE);
memcpy(lnm_session_key, password_with_pad,
CIFS_ENCPWD_SIZE);
return;