From: phk Date: Sat, 20 Dec 2008 23:47:45 +0000 (+0000) Subject: This is a bandaid for a pointer dereference when "restart" is used. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=30264aa95cffa41d90992bdbd97ac1cc3bfd69e9;p=varnish This is a bandaid for a pointer dereference when "restart" is used. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3476 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/lib/libvcl/vcc_action.c b/varnish-cache/lib/libvcl/vcc_action.c index 20f7d966..253fe4b7 100644 --- a/varnish-cache/lib/libvcl/vcc_action.c +++ b/varnish-cache/lib/libvcl/vcc_action.c @@ -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); }