- Yehoshua Hershberg found a problem that would make libcurl re-use a

connection with the multi interface even if a previous use of it caused a
  CURLE_PEER_FAILED_VERIFICATION to get returned. I now make sure that failed
  SSL connections properly close the connections.
This commit is contained in:
Daniel Stenberg
2008-08-04 22:07:50 +00:00
parent 3a499099af
commit ed50e3f1b4
4 changed files with 12 additions and 6 deletions

View File

@@ -1815,8 +1815,11 @@ static CURLcode https_connecting(struct connectdata *conn, bool *done)
/* perform SSL initialization for this socket */
result = Curl_ssl_connect_nonblocking(conn, FIRSTSOCKET, done);
if(result)
if(result) {
conn->bits.close = TRUE; /* a failed connection is marked for closure
to prevent (bad) re-use or similar */
return result;
}
return CURLE_OK;
}