Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 33677
b: refs/heads/master
c: 66abda5
h: refs/heads/master
i:
  33675: 7abbdca
v: v3
  • Loading branch information
Steve French committed Aug 11, 2006
1 parent 96b0add commit a65cb76
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7ee1af765dfa3146aef958258003245e082284e5
refs/heads/master: 66abda5e1fa48e12e06d0b68746b0e67202a97d2
3 changes: 2 additions & 1 deletion trunk/fs/cifs/cifsencrypt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit a65cb76

Please sign in to comment.