[experimental-ims] e88413b Allocate HTTP.status from http's designated workspace.
Geoff Simmons
geoff at varnish-cache.org
Tue Feb 14 17:49:28 CET 2012
commit e88413bccbd000157da949eedc3ee4b0c6889dec
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Wed Feb 8 23:26:57 2012 +0000
Allocate HTTP.status from http's designated workspace.
diff --git a/bin/varnishd/cache/cache_http.c b/bin/varnishd/cache/cache_http.c
index 0b0b926..cdf95f1 100644
--- a/bin/varnishd/cache/cache_http.c
+++ b/bin/varnishd/cache/cache_http.c
@@ -1069,7 +1069,7 @@ http_Write(struct worker *w, unsigned vsl_id, const struct http *hp, int resp)
l = WRW_WriteH(w, &hp->hd[HTTP_HDR_PROTO], " ");
WSLH(w, vsl_id, hp, HTTP_HDR_PROTO);
- hp->hd[HTTP_HDR_STATUS].b = WS_Alloc(w->ws, 4);
+ hp->hd[HTTP_HDR_STATUS].b = WS_Alloc(hp->ws, 4);
AN(hp->hd[HTTP_HDR_STATUS].b);
sprintf(hp->hd[HTTP_HDR_STATUS].b, "%3d", hp->status);
More information about the varnish-commit
mailing list