mirror of
https://github.com/curl/curl.git
synced 2026-04-15 01:11:40 +03:00
curl: make -N handled correctly
Options marked ARG_NO should have their 'toggle' value reverted when the short option is used as it implies using the --no- prefix. -N happens be the only short option flag for a --no- long option. Reported-by: Stefan Eissing Closes #17527
This commit is contained in:
parent
741748e341
commit
c7658f274c
1 changed files with 1 additions and 0 deletions
|
|
@ -2881,6 +2881,7 @@ ParameterError getparameter(const char *flag, /* f or -long-flag */
|
|||
err = PARAM_OPTION_UNKNOWN;
|
||||
break;
|
||||
}
|
||||
toggle = !(a->desc & ARG_NO);
|
||||
}
|
||||
if((a->desc & ARG_TLS) && !feature_ssl) {
|
||||
err = PARAM_LIBCURL_DOESNT_SUPPORT;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue