tool_operate: simplify single_transfer

- let the caller do the cleanup on fail
- avoid gotos and use direct returns more
- use while() loop

Closes #18077
This commit is contained in:
Daniel Stenberg 2025-07-29 13:29:25 +02:00
parent 6b70e8a838
commit b2ccfbf2fb
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
3 changed files with 84 additions and 113 deletions

View file

@ -45,8 +45,8 @@ void clean_getout(struct OperationConfig *config)
node = next;
}
config->url_list = NULL;
single_transfer_cleanup(config);
}
single_transfer_cleanup(config);
}
bool output_expected(const char *url, const char *uploadfile)