]> err.no Git - varnish/commitdiff
Add a missing error check.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 18 Dec 2008 10:31:08 +0000 (10:31 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 18 Dec 2008 10:31:08 +0000 (10:31 +0000)
Fixes #409

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3466 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/lib/libvcl/vcc_parse.c

index d97bc9cc526af0486c86a90ed953779c07d6562c..6dcefa0430a133ff43b8fe299893e0b8c9a9d1a0 100644 (file)
@@ -251,6 +251,7 @@ Cond_String(const struct var *vp, struct tokenlist *tl)
                vcc_NextToken(tl);
                ExpectErr(tl, CSTR);
                p = vcc_regexp(tl, 0);
+               ERRCHK(tl);
                vcc_NextToken(tl);
                Fb(tl, 1, "VRT_re_match(%s, %s)\n", vp->rname, p);
                break;