Skip to content
Snippets Groups Projects
Commit c7dbde9f authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

Uses the Curl_SSLConnect() according to the new return type

parent 8fd89d6b
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment