Commit 63ffc8ad authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Initialize the obj->ws before we use it.


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2074 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent f63eeafe
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment