]> err.no Git - varnish/commitdiff
Actually get the logic right here, if there is no Vary string, the
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 25 Jun 2007 14:12:54 +0000 (14:12 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 25 Jun 2007 14:12:54 +0000 (14:12 +0000)
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

index 0693dff0d64fcb524aba8dda0b6721377421e1f7..da93ad08ac501164e0aa42e8f2a21515e8511a64 100644 (file)
@@ -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--;
        }