From 689bf6daab6a0153afde4fef7670bfbca30a5570 Mon Sep 17 00:00:00 2001 From: Joan Torres Date: Tue, 7 Mar 2023 12:05:35 +0100 Subject: [PATCH] [core,nla]: Fix using password from redirection If a client reconnects on redirection process and uses NLA authentication, the client was using the old password because it wasn't setting usePassword to false. With this commit the client will use the new password. --- libfreerdp/core/nla.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libfreerdp/core/nla.c b/libfreerdp/core/nla.c index 3abc969ef..2e5450676 100644 --- a/libfreerdp/core/nla.c +++ b/libfreerdp/core/nla.c @@ -391,6 +391,8 @@ static BOOL nla_client_setup_identity(rdpNla* nla) (const WCHAR*)settings->RedirectionPassword, settings->RedirectionPasswordLength / sizeof(WCHAR) - 1) < 0) return FALSE; + + usePassword = FALSE; } if (settings->RestrictedAdminModeRequired)