From: Daniel Stenberg Date: Sat, 12 May 2001 09:30:42 +0000 (+0000) Subject: Uses the Curl_SSLConnect() according to the new return type X-Git-Tag: curl-7_8-pre2~84 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c7dbde9f3f0a3dd8e3b04106c2d8dba90d89c994;p=thirdparty%2Fcurl.git Uses the Curl_SSLConnect() according to the new return type --- diff --git a/lib/ftp.c b/lib/ftp.c index a2c8455c71..0edcd05f08 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 4984d684dd..3aba7aaddc 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) {