aboutsummaryrefslogtreecommitdiff
path: root/lib/sslgen.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sslgen.c')
-rw-r--r--lib/sslgen.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/sslgen.c b/lib/sslgen.c
index cc9642b66..33f038017 100644
--- a/lib/sslgen.c
+++ b/lib/sslgen.c
@@ -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;