tool_operate: break out of loop on error

Follow-up to 69bf530dfd

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

Closes #15322
This commit is contained in:
Daniel Stenberg 2024-10-17 15:32:48 +02:00
parent 38bfe1c2aa
commit 8cdbaba4bf
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -2994,6 +2994,7 @@ static CURLcode serial_transfers(struct GlobalConfig *global,
if(result) {
returncode = result;
bailout = TRUE;
break;
}
} while(skipped);
}