From 2d8a808674a49c094eddd9187ecbb81f282ec5bd Mon Sep 17 00:00:00 2001 From: phk Date: Fri, 31 Aug 2007 07:03:32 +0000 Subject: [PATCH] Fix typo that made worker process panic whenever a request came in without a Host: header. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1930 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/cache_backend_simple.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/varnish-cache/bin/varnishd/cache_backend_simple.c b/varnish-cache/bin/varnishd/cache_backend_simple.c index 07c076a8..b4a6b7a9 100644 --- a/varnish-cache/bin/varnishd/cache_backend_simple.c +++ b/varnish-cache/bin/varnishd/cache_backend_simple.c @@ -340,7 +340,7 @@ bes_GetHostname(struct backend *b) { struct bes *bes; - CHECK_OBJ_NOTNULL(b, SESS_MAGIC); + CHECK_OBJ_NOTNULL(b, BACKEND_MAGIC); CAST_OBJ_NOTNULL(bes, b->priv, BES_MAGIC); return (bes->hostname); } -- 2.39.5