From b1b437813a65c9a540b5409db4759c912800b1bd Mon Sep 17 00:00:00 2001 From: phk Date: Wed, 25 Jun 2008 15:56:05 +0000 Subject: [PATCH] Grap reference count on backend used by name in directors. Fixes ticket 263 git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2808 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/lib/libvcl/vcc_backend.c | 1 + 1 file changed, 1 insertion(+) diff --git a/varnish-cache/lib/libvcl/vcc_backend.c b/varnish-cache/lib/libvcl/vcc_backend.c index c5171d2f..62ad3a26 100644 --- a/varnish-cache/lib/libvcl/vcc_backend.c +++ b/varnish-cache/lib/libvcl/vcc_backend.c @@ -238,6 +238,7 @@ vcc_ParseBackendHost(struct tokenlist *tl, int *nbh, const struct token *qual, i vcc_ErrWhere(tl, tl->t); return; } + vcc_AddRef(tl, h->name, R_BACKEND); vcc_NextToken(tl); ExpectErr(tl, ';'); vcc_NextToken(tl); -- 2.39.5