mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
Uses the Curl_SSLConnect() according to the new return type
This commit is contained in:
parent
8fd89d6b93
commit
c7dbde9f3f
@ -481,8 +481,9 @@ CURLcode Curl_ftp_connect(struct connectdata *conn)
|
|||||||
if(conn->protocol & PROT_FTPS) {
|
if(conn->protocol & PROT_FTPS) {
|
||||||
/* FTPS is simply ftp with SSL for the control channel */
|
/* FTPS is simply ftp with SSL for the control channel */
|
||||||
/* now, perform the SSL initialization for this socket */
|
/* now, perform the SSL initialization for this socket */
|
||||||
if(Curl_SSLConnect(conn))
|
result = Curl_SSLConnect(conn);
|
||||||
return CURLE_SSL_CONNECT_ERROR;
|
if(result)
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -336,8 +336,9 @@ CURLcode Curl_http_connect(struct connectdata *conn)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* now, perform the SSL initialization for this socket */
|
/* now, perform the SSL initialization for this socket */
|
||||||
if(Curl_SSLConnect(conn))
|
result = Curl_SSLConnect(conn);
|
||||||
return CURLE_SSL_CONNECT_ERROR;
|
if(result)
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(conn->bits.user_passwd && !data->bits.this_is_a_follow) {
|
if(conn->bits.user_passwd && !data->bits.this_is_a_follow) {
|
||||||
|
Loading…
Reference in New Issue
Block a user