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

varnish-cache/bin/varnishd/cache_hash.c

index 1703daec09e53a28824db2e2dfa1b5045f113007..56946e02f8d5dd5d612a896500cb1ccd9886ca98 100644 (file)
@@ -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)