mirror of
https://github.com/curl/curl.git
synced 2026-08-26 20:23:32 +03:00
Correct error code for CCC/SSL shutdown failure
This commit is contained in:
parent
55123424c8
commit
d465199411
4 changed files with 12 additions and 8 deletions
|
|
@ -401,10 +401,12 @@ CURLcode Curl_ssl_shutdown(struct connectdata *conn, int sockindex)
|
|||
{
|
||||
if(conn->ssl[sockindex].use) {
|
||||
#ifdef USE_SSLEAY
|
||||
return Curl_ossl_shutdown(conn, sockindex);
|
||||
if(Curl_ossl_shutdown(conn, sockindex))
|
||||
return CURLE_SSL_SHUTDOWN_FAILED;
|
||||
#else
|
||||
#ifdef USE_GNUTLS
|
||||
return Curl_gtls_shutdown(conn, sockindex);
|
||||
if(Curl_gtls_shutdown(conn, sockindex))
|
||||
return CURLE_SSL_SHUTDOWN_FAILED;
|
||||
#else
|
||||
(void)conn;
|
||||
(void)sockindex;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue