]> granicus.if.org Git - curl/commitdiff
schannel SSL: fix for renegotiate problem
authorMark Salisbury <mark.salisbury@hp.com>
Wed, 20 Jun 2012 16:24:47 +0000 (10:24 -0600)
committerYang Tse <yangsita@gmail.com>
Wed, 20 Jun 2012 18:32:14 +0000 (20:32 +0200)
In schannel_connect_step2() doread should be initialized based
on connssl->connecting_state.

lib/curl_schannel.c

index 93af113998d31a5edd6e45571b7ed72482bb005d..0c51be6552b4a4341ad00cc272973cd8cf7ed85d 100644 (file)
@@ -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);