aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/ftp.c5
-rw-r--r--lib/http.c5
2 files changed, 6 insertions, 4 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index a2c8455c7..0edcd05f0 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -481,8 +481,9 @@ CURLcode Curl_ftp_connect(struct connectdata *conn)
if(conn->protocol & PROT_FTPS) {
/* FTPS is simply ftp with SSL for the control channel */
/* now, perform the SSL initialization for this socket */
- if(Curl_SSLConnect(conn))
- return CURLE_SSL_CONNECT_ERROR;
+ result = Curl_SSLConnect(conn);
+ if(result)
+ return result;
}
diff --git a/lib/http.c b/lib/http.c
index 4984d684d..3aba7aadd 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -336,8 +336,9 @@ CURLcode Curl_http_connect(struct connectdata *conn)
}
/* now, perform the SSL initialization for this socket */
- if(Curl_SSLConnect(conn))
- return CURLE_SSL_CONNECT_ERROR;
+ result = Curl_SSLConnect(conn);
+ if(result)
+ return result;
}
if(conn->bits.user_passwd && !data->bits.this_is_a_follow) {