[master] 288cd8d4a vtc: Break out of pointless loops
Nils Goroll
nils.goroll at uplex.de
Tue May 20 09:12:05 UTC 2025
commit 288cd8d4af42ba571ca60011fc1d144f317b26fa
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date: Mon May 6 14:33:21 2024 +0200
vtc: Break out of pointless loops
diff --git a/bin/varnishtest/vtc.c b/bin/varnishtest/vtc.c
index 60e1dd7c4..1a2e5d828 100644
--- a/bin/varnishtest/vtc.c
+++ b/bin/varnishtest/vtc.c
@@ -487,7 +487,7 @@ parse_string(struct vtclog *vl, void *priv, const char *spec)
if (!strcmp(token_s[0], "loop")) {
n = strtoul(token_s[1], NULL, 0);
- for (m = 0; m < n; m++) {
+ for (m = 0; m < n && !vtc_error && !vtc_stop; m++) {
vtc_log(vl, 4, "Loop #%u", m);
parse_string(vl, priv, token_s[2]);
}
More information about the varnish-commit
mailing list