]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tool_operate: bail out proper on errors for parallel setup
authorDaniel Stenberg <daniel@haxx.se>
Wed, 28 Oct 2020 10:00:31 +0000 (11:00 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 29 Oct 2020 16:26:31 +0000 (17:26 +0100)
... otherwise for example trying to upload a missing file just causes a
loop.

Reported-by: BrumBrum on hackerone
Closes #6141

src/tool_operate.c

index 021b23adec1e1ccd2edba13328749777c19a4161..00003797fe0a037ddc3674ccc9d3ff5b6a0b6fd1 100644 (file)
@@ -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 */