]> err.no Git - varnish/commitdiff
Check that we found a variable before using it.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 31 Jul 2008 09:23:28 +0000 (09:23 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 31 Jul 2008 09:23:28 +0000 (09:23 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3035 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/lib/libvcl/vcc_action.c

index a32ee42f437a186f5a8bfce102784922b4c62d7c..e1279e9db44af5d0deedc62d5a51ce641a318440 100644 (file)
@@ -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);