mirror of
https://github.com/curl/curl.git
synced 2024-11-21 01:16:58 +08:00
getparam: make --ftp-ssl work again
Follow-up to 9e4e527
which accidentally broke it
Reported-by: Jordan Brown
Fixes #13006
Closes #13007
This commit is contained in:
parent
b8ad95bf39
commit
65405459d5
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user