]> err.no Git - varnish/commitdiff
Workaround: ignore uncached objects in EXP_Touch()
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 29 Feb 2008 09:38:49 +0000 (09:38 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 29 Feb 2008 09:38:49 +0000 (09:38 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2544 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_expire.c

index 677c2b2cb0e9fe053492aa3c48477ed0a723d7d2..c9ddddcfd71d2c58ab3d127d251fde7503fc44e0 100644 (file)
@@ -198,6 +198,8 @@ EXP_Touch(const struct object *o, double now)
 
        CHECK_OBJ_NOTNULL(o, OBJECT_MAGIC);
        oe = o->objexp;
+       if (oe == NULL)
+               return;
        CHECK_OBJ_NOTNULL(oe, OBJEXP_MAGIC);
        if (oe->lru_stamp + params->lru_timeout > now)
                return;