Mailing List Archive

r2074 - trunk/varnish-cache/bin/varnishd
Author: phk
Date: 2007-10-01 11:04:15 +0200 (Mon, 01 Oct 2007)
New Revision: 2074

Modified:
trunk/varnish-cache/bin/varnishd/cache_synthetic.c
Log:
Initialize the obj->ws before we use it.


Modified: trunk/varnish-cache/bin/varnishd/cache_synthetic.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_synthetic.c 2007-10-01 08:54:26 UTC (rev 2073)
+++ trunk/varnish-cache/bin/varnishd/cache_synthetic.c 2007-10-01 09:04:15 UTC (rev 2074)
@@ -70,6 +70,13 @@
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)