]> err.no Git - varnish/commitdiff
Add a missing error check.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 23 Jul 2008 17:04:53 +0000 (17:04 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 23 Jul 2008 17:04:53 +0000 (17:04 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3002 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/lib/libvcl/vcc_action.c

index 59c248380cc98249978d79a8754348bef87136c6..2b02502f3c3835ea18bdf55fdaca3285d0800df8 100644 (file)
@@ -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");
        }