mirror of
https://github.com/curl/curl.git
synced 2026-08-25 19:33:32 +03:00
nss: fix tight loop in non-blocking TLS handhsake over proxy
... in case the handshake completes before entering CURLM_STATE_PROTOCONNECT Bug: https://bugzilla.redhat.com/1388162
This commit is contained in:
parent
d2c6d1568e
commit
eb84412b33
2 changed files with 6 additions and 1 deletions
|
|
@ -1921,8 +1921,11 @@ static CURLcode nss_connect_common(struct connectdata *conn, int sockindex,
|
|||
const bool blocking = (done == NULL);
|
||||
CURLcode result;
|
||||
|
||||
if(connssl->state == ssl_connection_complete)
|
||||
if(connssl->state == ssl_connection_complete) {
|
||||
if(!blocking)
|
||||
*done = TRUE;
|
||||
return CURLE_OK;
|
||||
}
|
||||
|
||||
if(connssl->connecting_state == ssl_connect_1) {
|
||||
result = nss_setup_connect(conn, sockindex);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue