From d9241262bde491b27594b83898ab04f7d997d9f5 Mon Sep 17 00:00:00 2001 From: phk Date: Mon, 25 Jun 2007 14:12:54 +0000 Subject: [PATCH] Actually get the logic right here, if there is no Vary string, the object is acceptable to all clients. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1563 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/cache_hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/varnish-cache/bin/varnishd/cache_hash.c b/varnish-cache/bin/varnishd/cache_hash.c index 0693dff0..da93ad08 100644 --- a/varnish-cache/bin/varnishd/cache_hash.c +++ b/varnish-cache/bin/varnishd/cache_hash.c @@ -158,7 +158,7 @@ VSLR(SLT_Debug, sp->fd, sp->hash_b, sp->hash_e); o->ttl = 0; VSL(SLT_ExpBan, 0, "%u was banned", o->xid); EXP_TTLchange(o); - } else if (o->vary != NULL && VRY_Match(sp, o->vary)) + } else if (o->vary == NULL || VRY_Match(sp, o->vary)) break; o->refcnt--; } -- 2.39.5