From: phk Date: Thu, 18 Dec 2008 10:31:08 +0000 (+0000) Subject: Add a missing error check. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e3dbaf4088cefa746657f6138b0380e50babd092;p=varnish Add a missing error check. Fixes #409 git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3466 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/lib/libvcl/vcc_parse.c b/varnish-cache/lib/libvcl/vcc_parse.c index d97bc9cc..6dcefa04 100644 --- a/varnish-cache/lib/libvcl/vcc_parse.c +++ b/varnish-cache/lib/libvcl/vcc_parse.c @@ -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;