r3035 - trunk/varnish-cache/lib/libvcl
phk at projects.linpro.no
phk at projects.linpro.no
Thu Jul 31 11:23:28 CEST 2008
Author: phk
Date: 2008-07-31 11:23:28 +0200 (Thu, 31 Jul 2008)
New Revision: 3035
Modified:
trunk/varnish-cache/lib/libvcl/vcc_action.c
Log:
Check that we found a variable before using it.
Modified: trunk/varnish-cache/lib/libvcl/vcc_action.c
===================================================================
--- trunk/varnish-cache/lib/libvcl/vcc_action.c 2008-07-31 09:22:46 UTC (rev 3034)
+++ trunk/varnish-cache/lib/libvcl/vcc_action.c 2008-07-31 09:23:28 UTC (rev 3035)
@@ -99,6 +99,7 @@
vcc_NextToken(tl);
if (tl->t->tok == VAR) {
vp = vcc_FindVar(tl, tl->t, vcc_vars);
+ ERRCHK(tl);
if (vp->fmt == INT) {
Fb(tl, 1, "VRT_error(sp, %s", vp->rname);
vcc_NextToken(tl);
More information about the varnish-commit
mailing list