Correct error code for CCC/SSL shutdown failure

This commit is contained in:
Linus Nielsen Feltzing 2007-01-08 11:24:11 +00:00
parent 55123424c8
commit d465199411
4 changed files with 12 additions and 8 deletions

View file

@ -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;