From: des Date: Tue, 19 Feb 2008 11:57:04 +0000 (+0000) Subject: If HSH_Lookup() returns non-NULL, assert that sp->objhead != NULL. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c02807309a9e3bdc17d31462c1fbf5ac78e67f91;p=varnish If HSH_Lookup() returns non-NULL, assert that sp->objhead != NULL. HSH_Lookup() is supposed to guarantee this, but it appears that it sometimes doesn't (perhaps a bug snuck in with grace mode?) git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2516 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache_center.c b/varnish-cache/bin/varnishd/cache_center.c index 317b6efe..988f5cd5 100644 --- a/varnish-cache/bin/varnishd/cache_center.c +++ b/varnish-cache/bin/varnishd/cache_center.c @@ -547,6 +547,7 @@ cnt_lookup(struct sess *sp) * We hit a busy object, disembark worker thread and expect * hash code to restart us, still in STP_LOOKUP, later. */ + spassert(sp->objhead != NULL); WSP(sp, SLT_Debug, "on waiting list <%s>", sp->objhead->hash); /* * There is a non-zero risk that we come here more than once