]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
getparam: make --ftp-ssl work again
authorDaniel Stenberg <daniel@haxx.se>
Wed, 28 Feb 2024 07:02:49 +0000 (08:02 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 28 Feb 2024 10:20:22 +0000 (11:20 +0100)
Follow-up to 9e4e527 which accidentally broke it

Reported-by: Jordan Brown
Fixes #13006
Closes #13007

src/tool_getparam.c

index 4c910fd73c912bffc3e36b0b6cfc24502c444977..23fe3106e6d4129064cfce92ab136c07b8d6d511 100644 (file)
@@ -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 */