[master] 26a232bad vcc_acl: Polish to avoid double error reporting

Nils Goroll nils.goroll at uplex.de
Thu Nov 20 09:50:05 UTC 2025


commit 26a232badffd2f59f3e9926e7953cb3e1cc82a24
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Thu Nov 20 10:47:53 2025 +0100

    vcc_acl: Polish to avoid double error reporting
    
    Thank you to walid for insisting that it existed.

diff --git a/lib/libvcc/vcc_acl.c b/lib/libvcc/vcc_acl.c
index 47d4d3350..003e91fae 100644
--- a/lib/libvcc/vcc_acl.c
+++ b/lib/libvcc/vcc_acl.c
@@ -890,6 +890,8 @@ vcc_ParseAcl(struct vcc *tl)
 			vcc_NextToken(tl);
 		} else if (vcc_IdIs(tl->t, "fold")) {
 			vcc_parseAclFold(tl, sign);
+			if (tl->err)
+				return;
 		} else if (vcc_IdIs(tl->t, "pedantic")) {
 			acl->flag_pedantic = sign;
 			vcc_NextToken(tl);



More information about the varnish-commit mailing list