Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 276603
b: refs/heads/master
c: 59edb63
h: refs/heads/master
i:
  276601: ba6e799
  276599: e36c063
v: v3
  • Loading branch information
Steve French authored and Steve French committed Dec 9, 2011
1 parent 3cdf2df commit 24a9909
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: 9a5101c8968c7b3e7de5564af6358d7332cf9a6b
refs/heads/master: 59edb63ad08e4f3a9477223c9aaf3fba753085bf
6 changes: 3 additions & 3 deletions trunk/fs/cifs/smbencrypt.c
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ E_md4hash(const unsigned char *passwd, unsigned char *p16,
{
int rc;
int len;
__u16 wpwd[129];
__le16 wpwd[129];

/* Password cannot be longer than 128 characters */
if (passwd) /* Password must be converted to NT unicode */
Expand All @@ -219,8 +219,8 @@ E_md4hash(const unsigned char *passwd, unsigned char *p16,
*wpwd = 0; /* Ensure string is null terminated */
}

rc = mdfour(p16, (unsigned char *) wpwd, len * sizeof(__u16));
memset(wpwd, 0, 129 * sizeof(__u16));
rc = mdfour(p16, (unsigned char *) wpwd, len * sizeof(__le16));
memset(wpwd, 0, 129 * sizeof(__le16));

return rc;
}
Expand Down

0 comments on commit 24a9909

Please sign in to comment.