]> err.no Git - varnish/commitdiff
Close another possible NULL dereference
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 29 Jan 2008 10:59:01 +0000 (10:59 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 29 Jan 2008 10:59:01 +0000 (10:59 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2396 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_hash.c

index 56946e02f8d5dd5d612a896500cb1ccd9886ca98..7542745c040bcfcc93f8b3499332be61de978ae3 100644 (file)
@@ -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);