diff options
| author | Daniel Stenberg <daniel@haxx.se> | 2019-12-09 12:03:05 +0100 | 
|---|---|---|
| committer | Daniel Stenberg <daniel@haxx.se> | 2019-12-09 17:17:42 +0100 | 
| commit | c7bc689fc3d32534426612a3654cd1c804831091 (patch) | |
| tree | 12670376f6732245cf603ae3b38f70c8cd220ec1 /lib/http_proxy.c | |
| parent | 35c7aac3c61190a4d63a7f0bbbe45e4dd09ba4af (diff) | |
conn: always set bits.close with connclose()
Closes #4690
Diffstat (limited to 'lib/http_proxy.c')
| -rw-r--r-- | lib/http_proxy.c | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/lib/http_proxy.c b/lib/http_proxy.c index f095455a5..75c7a60c3 100644 --- a/lib/http_proxy.c +++ b/lib/http_proxy.c @@ -58,8 +58,9 @@ static CURLcode https_proxy_connect(struct connectdata *conn, int sockindex)        Curl_ssl_connect_nonblocking(conn, sockindex,                                     &conn->bits.proxy_ssl_connected[sockindex]);      if(result) -      conn->bits.close = TRUE; /* a failed connection is marked for closure to -                                  prevent (bad) re-use or similar */ +      /* a failed connection is marked for closure to prevent (bad) re-use or +         similar */ +      connclose(conn, "TLS handshake failed");    }    return result;  #else | 
