Merge pull request #2752 from akallabeth/nla_user_length_fix

NLA decrypt credentials fixed.
This commit is contained in:
Martin Fleisz 2015-07-01 14:49:00 +02:00
commit 59e2801848

View File

@ -945,7 +945,7 @@ BOOL nla_read_ts_password_creds(rdpNla* nla, wStream* s)
return FALSE;
}
nla->identity->UserLength = (UINT32) length;
if (nla->identity->PasswordLength > 0)
if (nla->identity->UserLength > 0)
{
nla->identity->User = (UINT16 *) malloc(length);
if (!nla->identity->User)