Commit da70a1e7 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Check that we found a variable before using it.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@3035 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 14d49ab2
......@@ -99,6 +99,7 @@ parse_error(struct tokenlist *tl)
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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment