]> err.no Git - varnish/commitdiff
Initialize the obj->ws before we use it.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 1 Oct 2007 09:04:15 +0000 (09:04 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 1 Oct 2007 09:04:15 +0000 (09:04 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2074 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_synthetic.c

index 10d1b16aa73ec80a6ab1a64f653453ebc88a7f12..863f0023db8243b6b09fab1250db7ade4f6e1e27 100644 (file)
@@ -70,6 +70,13 @@ SYN_ErrorPage(struct sess *sp, int status, const char *reason, int ttl)
        h = o->http;
        now = TIM_real();
 
+       /* Set up obj's workspace */
+       st = o->objstore;
+       WS_Init(o->ws_o, st->ptr + st->len, st->space - st->len);
+       st->len = st->space;
+       WS_Assert(o->ws_o);
+       http_Setup(o->http, o->ws_o);
+
        /* look up HTTP response */
        msg = http_StatusMessage(status);
        if (reason == NULL)