mirror of
https://github.com/curl/curl.git
synced 2026-07-24 21:07:28 +03:00
Curl_ssl_close(): mark the connection as not using SSL anymore, to better
survive getting called twice
This commit is contained in:
parent
c8d3327e92
commit
92039629c7
1 changed files with 5 additions and 8 deletions
13
lib/sslgen.c
13
lib/sslgen.c
|
|
@ -413,17 +413,14 @@ void Curl_ssl_close(struct connectdata *conn)
|
|||
if(conn->ssl[FIRSTSOCKET].use) {
|
||||
#ifdef USE_SSLEAY
|
||||
Curl_ossl_close(conn);
|
||||
#else
|
||||
#endif /* USE_SSLEAY */
|
||||
#ifdef USE_GNUTLS
|
||||
Curl_gtls_close(conn);
|
||||
#else
|
||||
#ifdef USE_GNUTLS
|
||||
Curl_nss_close(conn);
|
||||
#else
|
||||
(void)conn;
|
||||
#endif /* USE_NSS */
|
||||
#endif /* USE_GNUTLS */
|
||||
#endif /* USE_SSLEAY */
|
||||
#ifdef USE_NSS
|
||||
Curl_nss_close(conn);
|
||||
#endif /* USE_NSS */
|
||||
conn->ssl[FIRSTSOCKET].use = FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue