]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tool_operate: break out of loop on error
authorDaniel Stenberg <daniel@haxx.se>
Thu, 17 Oct 2024 13:32:48 +0000 (15:32 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 17 Oct 2024 14:04:09 +0000 (16:04 +0200)
Follow-up to 69bf530dfd2a

The loop could get stuck there in torture tests/OOM.

Closes #15322

src/tool_operate.c

index 5aadf26d23f6e91d45e79a209c2494b538116913..1e19fcff6facccac9887ea30ce0aac17f22b1e89 100644 (file)
@@ -2994,6 +2994,7 @@ static CURLcode serial_transfers(struct GlobalConfig *global,
         if(result) {
           returncode = result;
           bailout = TRUE;
+          break;
         }
       } while(skipped);
     }