r2395 - trunk/varnish-cache/bin/varnishd
phk at projects.linpro.no
phk at projects.linpro.no
Tue Jan 29 11:57:30 CET 2008
Author: phk
Date: 2008-01-29 11:57:30 +0100 (Tue, 29 Jan 2008)
New Revision: 2395
Modified:
trunk/varnish-cache/bin/varnishd/cache_hash.c
Log:
Fix a possible NULL dereference.
Modified: trunk/varnish-cache/bin/varnishd/cache_hash.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_hash.c 2008-01-29 08:45:40 UTC (rev 2394)
+++ trunk/varnish-cache/bin/varnishd/cache_hash.c 2008-01-29 10:57:30 UTC (rev 2395)
@@ -307,7 +307,8 @@
LOCK(&oh->mtx);
}
o->busy = 0;
- hsh_rush(oh);
+ if (oh != NULL)
+ hsh_rush(oh);
parent = o->parent;
o->parent = NULL;
if (parent != NULL)
More information about the varnish-commit
mailing list