From: Mark Salisbury Date: Wed, 20 Jun 2012 16:24:47 +0000 (-0600) Subject: schannel SSL: fix for renegotiate problem X-Git-Tag: curl-7_27_0~151 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8f92e8be122de21d924b920c2c9fcd687f91a83a;p=curl schannel SSL: fix for renegotiate problem In schannel_connect_step2() doread should be initialized based on connssl->connecting_state. --- diff --git a/lib/curl_schannel.c b/lib/curl_schannel.c index 93af11399..0c51be655 100644 --- a/lib/curl_schannel.c +++ b/lib/curl_schannel.c @@ -290,7 +290,7 @@ schannel_connect_step2(struct connectdata *conn, int sockindex) SECURITY_STATUS sspi_status = SEC_E_OK; TCHAR *host_name; CURLcode code; - bool doread = TRUE; + bool doread = connssl->connecting_state != ssl_connect_2_writing; infof(data, "schannel: SSL/TLS connection with %s port %hu (step 2/3)\n", conn->host.name, conn->remote_port);