Revert "core/connection: use redirection password when reconnecting"
authorKOVACS Krisztian <hidden@balabit.com>
Wed, 6 Dec 2017 13:58:34 +0000 (14:58 +0100)
committerKOVACS Krisztian <hidden@balabit.com>
Wed, 6 Dec 2017 13:58:34 +0000 (14:58 +0100)
This reverts commit 70c65e70d181a95ee5933df1703f08ac9e489374.

libfreerdp/core/connection.c

index 89e61d1..0bf1bc1 100644 (file)
@@ -385,22 +385,6 @@ BOOL rdp_client_redirect(rdpRdp* rdp)
                        return FALSE;
        }
 
-       if (settings->RedirectionFlags & LB_PASSWORD)
-       {
-               char *password = NULL;
-
-               /* If unicode conversion fails, this might be because the Password field
-                * might contain a non-unicode cookie value. Simply ignore in this case. */
-               if (ConvertFromUnicode(CP_UTF8, 0,
-                        (WCHAR*) settings->RedirectionPassword, settings->RedirectionPasswordLength,
-                        &password, 0,
-                        NULL, NULL) > 0)
-               {
-                       free(settings->Password);
-                       settings->Password = password;
-               }
-       }
-
        status = rdp_client_connect(rdp);
 
        return status;