aboutsummaryrefslogtreecommitdiff
path: root/lib/ftp.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ftp.c')
-rw-r--r--lib/ftp.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index 203afe6ba..ec8d9f11d 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -2946,10 +2946,8 @@ static CURLcode ftp_connect(struct connectdata *conn,
return result;
}
- if(conn->handler->protocol & CURLPROTO_FTPS) {
+ if(conn->handler->flags & PROTOPT_SSL) {
/* BLOCKING */
- /* FTPS is simply ftp with SSL for the control channel */
- /* now, perform the SSL initialization for this socket */
result = Curl_ssl_connect(conn, FIRSTSOCKET);
if(result)
return result;