From 188149206bdb28493d29a30eb64dcdb59a87ec0f Mon Sep 17 00:00:00 2001 From: phk Date: Tue, 29 Jan 2008 10:57:30 +0000 Subject: [PATCH] Fix a possible NULL dereference. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2395 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/cache_hash.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.39.5