From 567b1f74326c8ccacbeedc39f4833f543ace23c7 Mon Sep 17 00:00:00 2001 From: Henrik Andersson Date: Tue, 17 Apr 2018 16:57:05 +0200 Subject: [PATCH] Clear password is smart card pin upon redirect Upon a redirection, we have received a cookie that is used for authentication and we should not flag this as a pin code for the smartcard. This solves a problem with incorrect pin code when using smart card authentication and if redirected to a server were a session exists. --- rdp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/rdp.c b/rdp.c index 2edc14b..dfe79cc 100644 --- a/rdp.c +++ b/rdp.c @@ -390,6 +390,7 @@ rdp_send_client_info_pdu(uint32 flags, char *domain, char *user, if (g_redirect == True && g_redirect_cookie_len > 0) { + flags &= ~RDP_INFO_PASSWORD_IS_SC_PIN; flags |= RDP_INFO_AUTOLOGON; len_password = g_redirect_cookie_len; len_password -= 2; /* subtract 2 bytes which is added below */