wininet: Don't bother reconnecting to server for compat secure mode if we don't have compat cred handle.

This commit is contained in:
Jacek Caban 2013-04-08 16:58:28 +02:00 committed by Alexandre Julliard
parent b0ef7b401c
commit 77ed56cffb

View File

@ -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);