From c02807309a9e3bdc17d31462c1fbf5ac78e67f91 Mon Sep 17 00:00:00 2001 From: des Date: Tue, 19 Feb 2008 11:57:04 +0000 Subject: [PATCH] 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 --- varnish-cache/bin/varnishd/cache_center.c | 1 + 1 file changed, 1 insertion(+) 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 -- 2.39.5