From f8dc278ee863cf6ea31ace6a940b08bd6b8db536 Mon Sep 17 00:00:00 2001 From: phk Date: Tue, 29 Jan 2008 10:59:01 +0000 Subject: [PATCH] Close another possible NULL dereference git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2396 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 56946e02..7542745c 100644 --- a/varnish-cache/bin/varnishd/cache_hash.c +++ b/varnish-cache/bin/varnishd/cache_hash.c @@ -352,7 +352,8 @@ HSH_Deref(struct object *o) } assert(o->refcnt > 0); r = --o->refcnt; - hsh_rush(oh); + if (oh != NULL) + hsh_rush(oh); if (oh != NULL) { if (!r) VTAILQ_REMOVE(&oh->objects, o, list); -- 2.39.5