From 65405459d58abed6d5b6ea20ccdca972aa807f9c Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 28 Feb 2024 08:02:49 +0100 Subject: [PATCH] getparam: make --ftp-ssl work again Follow-up to 9e4e527 which accidentally broke it Reported-by: Jordan Brown Fixes #13006 Closes #13007 --- src/tool_getparam.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/tool_getparam.c b/src/tool_getparam.c index 4c910fd73c..23fe3106e6 100644 --- a/src/tool_getparam.c +++ b/src/tool_getparam.c @@ -1593,6 +1593,7 @@ ParameterError getparameter(const char *flag, /* f or -long-flag */ url->flags |= GETOUT_URL; } break; + case C_FTP_SSL: /* --ftp-ssl */ case C_SSL: /* --ssl */ if(toggle && !feature_ssl) err = PARAM_LIBCURL_DOESNT_SUPPORT; @@ -1600,7 +1601,8 @@ ParameterError getparameter(const char *flag, /* f or -long-flag */ config->ftp_ssl = toggle; if(config->ftp_ssl) warnf(global, - "--ssl is an insecure option, consider --ssl-reqd instead"); + "--%s is an insecure option, consider --ssl-reqd instead", + a->lname); } break; case C_FTP_PASV: /* --ftp-pasv */ -- 2.47.3