Commit 77ed56cf authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

wininet: Don't bother reconnecting to server for compat secure mode if we don't…

wininet: Don't bother reconnecting to server for compat secure mode if we don't have compat cred handle.
parent b0ef7b40
......@@ -659,7 +659,7 @@ DWORD NETCON_secure_connect(netconn_t *connection, server_t *server)
/* FIXME: when got version alert and FIN from server */
/* fallback to connect without TLSv1.1/TLSv1.2 */
if (res == ERROR_INTERNET_SECURITY_CHANNEL_ERROR)
if (res == ERROR_INTERNET_SECURITY_CHANNEL_ERROR && have_compat_cred_handle)
{
closesocket(connection->socket);
res = create_netconn_socket(connection->server, connection, 500);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment