]> err.no Git - varnish/commitdiff
Merge r3466:
authortfheen <tfheen@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 28 Jan 2009 14:32:57 +0000 (14:32 +0000)
committertfheen <tfheen@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 28 Jan 2009 14:32:57 +0000 (14:32 +0000)
Add a missing error check.

Fixes #409

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/branches/2.0@3561 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/lib/libvcl/vcc_parse.c

index cbea1dbcc12b88a178200ef83425d8b68ce14e31..433de527d076d316d8f04f8d67de816d6c00ad5c 100644 (file)
@@ -251,6 +251,7 @@ Cond_String(const struct var *vp, struct tokenlist *tl)
        case '~':
                vcc_NextToken(tl);
                p = vcc_regexp(tl, 0);
+               ERRCHK(tl);
                vcc_NextToken(tl);
                Fb(tl, 1, "VRT_re_match(%s, %s)\n", vp->rname, p);
                break;