r3002 - trunk/varnish-cache/lib/libvcl

phk at projects.linpro.no phk at projects.linpro.no
Wed Jul 23 19:04:54 CEST 2008


Author: phk
Date: 2008-07-23 19:04:53 +0200 (Wed, 23 Jul 2008)
New Revision: 3002

Modified:
   trunk/varnish-cache/lib/libvcl/vcc_action.c
Log:
Add a missing error check.



Modified: trunk/varnish-cache/lib/libvcl/vcc_action.c
===================================================================
--- trunk/varnish-cache/lib/libvcl/vcc_action.c	2008-07-23 15:44:46 UTC (rev 3001)
+++ trunk/varnish-cache/lib/libvcl/vcc_action.c	2008-07-23 17:04:53 UTC (rev 3002)
@@ -108,7 +108,11 @@
 		vcc_NextToken(tl);
 	} else if (tl->t->tok == VAR) {
 		Fb(tl, 0, ", ");
-		vcc_StringVal(tl);
+		if (!vcc_StringVal(tl)) {
+			ERRCHK(tl);
+			vcc_ExpectedStringval(tl);
+			return;
+		}
 	} else {
 		Fb(tl, 0, ", (const char *)0");
 	}




More information about the varnish-commit mailing list