mirror of
https://github.com/curl/curl.git
synced 2026-08-11 08:00:56 +03:00
tool_getparam: don't add a new node for just --no-remote-name
Unless --remote-name-all is used. Fixes #10564 Reported-by: u20221022 on github Closes #10582
This commit is contained in:
parent
ddff8ef706
commit
780ff2c95c
1 changed files with 4 additions and 1 deletions
|
|
@ -2165,9 +2165,12 @@ ParameterError getparameter(const char *flag, /* f or -long-flag */
|
|||
if(config->url_out)
|
||||
/* existing node */
|
||||
url = config->url_out;
|
||||
else
|
||||
else {
|
||||
if(!toggle && !config->default_node_flags)
|
||||
break;
|
||||
/* there was no free node, create one! */
|
||||
config->url_out = url = new_getout(config);
|
||||
}
|
||||
|
||||
if(!url)
|
||||
return PARAM_NO_MEM;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue