]> err.no Git - varnish/commitdiff
Fix a NULL pointer deref in the Vary code.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 25 Jun 2007 14:10:34 +0000 (14:10 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 25 Jun 2007 14:10:34 +0000 (14:10 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1562 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_hash.c

index 7afa9eec7c39c75121d1a73e0965c704865dfd70..0693dff0d64fcb524aba8dda0b6721377421e1f7 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 (VRY_Match(sp, o->vary))
+               } else if (o->vary != NULL && VRY_Match(sp, o->vary))
                        break;
                o->refcnt--;
        }