diff options
author | Daniel Stenberg <daniel@haxx.se> | 2020-10-28 11:00:31 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-10-29 17:26:31 +0100 |
commit | ce8ac2db2be8a7b6864ea40da8776ef813a13d11 (patch) | |
tree | 1fcba8073a8ff2e2a25bb24d055d8bb2ee01feea | |
parent | 3a1e798009799be1e9fad30666351b66f250befb (diff) | |
download | curl-ce8ac2db2be8a7b6864ea40da8776ef813a13d11.tar.gz |
tool_operate: bail out proper on errors for parallel setup
... otherwise for example trying to upload a missing file just causes a
loop.
Reported-by: BrumBrum on hackerone
Closes #6141
-rw-r--r-- | src/tool_operate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tool_operate.c b/src/tool_operate.c index 021b23ade..00003797f 100644 --- a/src/tool_operate.c +++ b/src/tool_operate.c @@ -2174,7 +2174,7 @@ static CURLcode add_parallel_transfers(struct GlobalConfig *global, result = pre_transfer(global, per); if(result) - break; + return result; /* parallel connect means that we don't set PIPEWAIT since pipewait will make libcurl prefer multiplexing */ |