diff options
author | Henrik Andersson <hean01@cendio.com> | 2018-04-17 16:57:05 +0200 |
---|---|---|
committer | Henrik Andersson <hean01@cendio.com> | 2018-04-17 16:57:05 +0200 |
commit | 567b1f74326c8ccacbeedc39f4833f543ace23c7 (patch) | |
tree | e638fcddaeaa2d29a8fb4d951ce592c21c55a458 | |
parent | 0374d2ce9be783e5684de56c3728ecc6b47d2364 (diff) | |
download | rdesktop-567b1f74326c8ccacbeedc39f4833f543ace23c7.zip |
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.
-rw-r--r-- | rdp.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 */ |