schannel SSL: fix for renegotiate problem

In schannel_connect_step2() doread should be initialized based
on connssl->connecting_state.
This commit is contained in:
Mark Salisbury 2012-06-20 10:24:47 -06:00 committed by Yang Tse
parent a3e3f8ffa0
commit 8f92e8be12
1 changed files with 1 additions and 1 deletions

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