]> err.no Git - varnish/commitdiff
This is a bandaid for a pointer dereference when "restart" is used.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sat, 20 Dec 2008 23:47:45 +0000 (23:47 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sat, 20 Dec 2008 23:47:45 +0000 (23:47 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3476 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/lib/libvcl/vcc_action.c

index 20f7d9663e45d73ce674e211c3ed775f0257d349..253fe4b75a4066bb0047bfc532f984f59c52cf24 100644 (file)
@@ -85,7 +85,8 @@ parse_restart(struct tokenlist *tl)
                ERRCHK(tl);
        }
        Fb(tl, 1, "VRT_done(sp, VCL_RET_RESTART);\n");
-       vcc_ProcAction(tl->curproc, VCL_RET_RESTART, tl->t);
+       assert(VCL_RET_RESTART == (1 << 9));    /* XXX: BANDAID FIXME! */
+       vcc_ProcAction(tl->curproc, 9, tl->t);
        vcc_NextToken(tl);
 }