From: Daniel Stenberg Date: Thu, 17 Oct 2024 13:32:48 +0000 (+0200) Subject: tool_operate: break out of loop on error X-Git-Tag: curl-8_11_0~127 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8cdbaba4bf86e122cd3ffe94e68471ff7e06b16a;p=thirdparty%2Fcurl.git tool_operate: break out of loop on error Follow-up to 69bf530dfd2a The loop could get stuck there in torture tests/OOM. Closes #15322 --- diff --git a/src/tool_operate.c b/src/tool_operate.c index 5aadf26d23..1e19fcff6f 100644 --- a/src/tool_operate.c +++ b/src/tool_operate.c @@ -2994,6 +2994,7 @@ static CURLcode serial_transfers(struct GlobalConfig *global, if(result) { returncode = result; bailout = TRUE; + break; } } while(skipped); }