From: phk Date: Tue, 29 Jan 2008 10:57:30 +0000 (+0000) Subject: Fix a possible NULL dereference. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=188149206bdb28493d29a30eb64dcdb59a87ec0f;p=varnish Fix a possible NULL dereference. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2395 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache_hash.c b/varnish-cache/bin/varnishd/cache_hash.c index 1703daec..56946e02 100644 --- a/varnish-cache/bin/varnishd/cache_hash.c +++ b/varnish-cache/bin/varnishd/cache_hash.c @@ -307,7 +307,8 @@ HSH_Unbusy(struct object *o) LOCK(&oh->mtx); } o->busy = 0; - hsh_rush(oh); + if (oh != NULL) + hsh_rush(oh); parent = o->parent; o->parent = NULL; if (parent != NULL)