mirror of
https://github.com/curl/curl.git
synced 2026-05-17 20:36:26 +03: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
1 changed files with 3 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue