mirror of
https://github.com/curl/curl.git
synced 2026-07-09 04:17:17 +03:00
tool_operate: fix case of ignoring return code in single_transfer
When glob_url() returns error, stop. Closes #19649
This commit is contained in:
parent
7d75c728a6
commit
4ebef2f0d9
1 changed files with 1 additions and 1 deletions
|
|
@ -1199,7 +1199,7 @@ static CURLcode single_transfer(struct OperationConfig *config,
|
|||
if(u->infile) {
|
||||
if(!config->globoff && !glob_inuse(&state->inglob))
|
||||
result = glob_url(&state->inglob, u->infile, &state->upnum, err);
|
||||
if(!state->uploadfile) {
|
||||
if(!result && !state->uploadfile) {
|
||||
if(glob_inuse(&state->inglob))
|
||||
result = glob_next_url(&state->uploadfile, &state->inglob);
|
||||
else if(!state->upidx) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue