From f70f11fc70ecdf12669e0222303d7af59d462548 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 8 Mar 2006 15:46:21 +0000 Subject: [PATCH] Peter Heuchert's correction for the clear control connection case --- lib/ftp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ftp.c b/lib/ftp.c index 3d29b349f..7a0cc9a83 100644 --- a/lib/ftp.c +++ b/lib/ftp.c @@ -2472,7 +2472,7 @@ static CURLcode ftp_statemach_act(struct connectdata *conn) if(ftpcode/100 == 2) /* We have enabled SSL for the data connection! */ conn->ssl[SECONDARYSOCKET].use = - data->set.ftp_ssl > CURLFTPSSL_CONTROL; + data->set.ftp_ssl != CURLFTPSSL_CONTROL; /* FTP servers typically responds with 500 if they decide to reject our 'P' request */ else if(data->set.ftp_ssl> CURLFTPSSL_CONTROL)