r4768 - trunk/varnish-cache/bin/varnishtest

phk at varnish-cache.org phk at varnish-cache.org
Wed May 5 10:20:01 CEST 2010


Author: phk
Date: 2010-05-05 10:20:01 +0200 (Wed, 05 May 2010)
New Revision: 4768

Modified:
   trunk/varnish-cache/bin/varnishtest/vtc.c
Log:
Return in main-thread if macro expansion fails



Modified: trunk/varnish-cache/bin/varnishtest/vtc.c
===================================================================
--- trunk/varnish-cache/bin/varnishtest/vtc.c	2010-05-05 08:16:31 UTC (rev 4767)
+++ trunk/varnish-cache/bin/varnishtest/vtc.c	2010-05-05 08:20:01 UTC (rev 4768)
@@ -307,6 +307,8 @@
 			if (NULL == strstr(token_s[tn], "${"))
 				continue;
 			token_exp[tn] = macro_expand(vl, token_s[tn]);
+			if (vtc_error)
+				return;
 			token_s[tn] = vsb_data(token_exp[tn]);
 			token_e[tn] = strchr(token_s[tn], '\0');
 		}




More information about the varnish-commit mailing list