Ignore redirection password in case of smartcard auth

This commit is contained in:
akallabeth 2021-11-05 12:25:45 +01:00 committed by akallabeth
parent 58b24f13fe
commit 755f2ce218

View File

@ -711,7 +711,9 @@ static BOOL rdp_write_info_packet(rdpRdp* rdp, wStream* s)
if (!settings->RemoteAssistanceMode)
{
if (settings->RedirectionPassword && settings->RedirectionPasswordLength > 0)
/* Ignore redirection password if we´re using smartcard and have the pin as password */
if (((flags & INFO_PASSWORD_IS_SC_PIN) == 0) && settings->RedirectionPassword &&
(settings->RedirectionPasswordLength > 0))
{
union {
BYTE* bp;