]> err.no Git - varnish/commitdiff
Grap reference count on backend used by name in directors.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 25 Jun 2008 15:56:05 +0000 (15:56 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 25 Jun 2008 15:56:05 +0000 (15:56 +0000)
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

index c5171d2fe5a84c258a9172e34a92f2aaaeec7c5b..62ad3a263c0e2ce34e49ee6557758302878caa90 100644 (file)
@@ -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);