NLA decrypt credentials fixed.

This commit is contained in:
Armin Novak 2015-07-01 14:31:55 +02:00
parent 1c43a6e115
commit 6c0e1af4af

View File

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