From: phk Date: Fri, 31 Aug 2007 07:03:32 +0000 (+0000) Subject: Fix typo that made worker process panic whenever a request came in without X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d8a808674a49c094eddd9187ecbb81f282ec5bd;p=varnish 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 --- 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); }