From: phk Date: Wed, 23 Jul 2008 17:04:53 +0000 (+0000) Subject: Add a missing error check. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e71f408e11955d6036dd0aa3b0812e5d6c34e3d7;p=varnish Add a missing error check. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3002 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/lib/libvcl/vcc_action.c b/varnish-cache/lib/libvcl/vcc_action.c index 59c24838..2b02502f 100644 --- a/varnish-cache/lib/libvcl/vcc_action.c +++ b/varnish-cache/lib/libvcl/vcc_action.c @@ -108,7 +108,11 @@ parse_error(struct tokenlist *tl) vcc_NextToken(tl); } else if (tl->t->tok == VAR) { Fb(tl, 0, ", "); - vcc_StringVal(tl); + if (!vcc_StringVal(tl)) { + ERRCHK(tl); + vcc_ExpectedStringval(tl); + return; + } } else { Fb(tl, 0, ", (const char *)0"); }