From 6c0e1af4afce270689407f71cf98d1298aed5191 Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Wed, 1 Jul 2015 14:31:55 +0200 Subject: [PATCH] NLA decrypt credentials fixed. --- libfreerdp/core/nla.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libfreerdp/core/nla.c b/libfreerdp/core/nla.c index 3b07cdaf9..8a47f329a 100644 --- a/libfreerdp/core/nla.c +++ b/libfreerdp/core/nla.c @@ -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)