From d2dc5a300ce77900785dbc382ed0930b6bcef935 Mon Sep 17 00:00:00 2001 From: phk Date: Fri, 29 Feb 2008 09:38:49 +0000 Subject: [PATCH] Workaround: ignore uncached objects in EXP_Touch() git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2544 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/cache_expire.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/varnish-cache/bin/varnishd/cache_expire.c b/varnish-cache/bin/varnishd/cache_expire.c index 677c2b2c..c9ddddcf 100644 --- a/varnish-cache/bin/varnishd/cache_expire.c +++ b/varnish-cache/bin/varnishd/cache_expire.c @@ -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; -- 2.39.5