From: phk Date: Mon, 7 Jul 2008 18:26:15 +0000 (+0000) Subject: Don't allow the invisible simple director to reference backend defined X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4894b7f5c3d633e7f58ee0558efdba879a649543;p=varnish Don't allow the invisible simple director to reference backend defined by another simple director, it would be too hard to explain why they shared statistics and harder yet to make them not do so. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2887 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/lib/libvcl/vcc_backend.c b/varnish-cache/lib/libvcl/vcc_backend.c index 15161c1e..01472f0e 100644 --- a/varnish-cache/lib/libvcl/vcc_backend.c +++ b/varnish-cache/lib/libvcl/vcc_backend.c @@ -375,7 +375,7 @@ vcc_ParseBackend(struct tokenlist *tl) h->name = tl->t; vcc_NextToken(tl); - vcc_ParseBackendHost(tl, &nbh, h->name, "backend", 0); + vcc_ParseHostDef(tl, &nbh, h->name, "backend", 0); ERRCHK(tl); h->hnum = nbh;