>From 720a61378ed24861284bc9626a2adba531fbecb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20R=C3=BChsen?= Date: Fri, 11 Sep 2015 10:45:01 +0200 Subject: [PATCH 3/3] Let FTPS work recursive --- src/ftp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ftp.c b/src/ftp.c index cb93838..f9a3316 100644 --- a/src/ftp.c +++ b/src/ftp.c @@ -340,7 +340,7 @@ getftp (struct url *u, wgint passed_expected_bytes, wgint *qtyread, * and whether we're actually using any of them * (encryption at the control connection only, * or both at control and data connections) */ - bool using_control_security = false, using_data_security = false; + bool using_control_security = false, using_data_security = true; #endif assert (con != NULL); @@ -538,8 +538,8 @@ Error in server response, closing control connection.\n")); if (!opt.server_response) logputs (LOG_VERBOSE, "done.\n"); - if (prot != PROT_CLEAR) - using_data_security = true; + if (prot == PROT_CLEAR) + using_data_security = false; } } #endif -- 2.5.1