[3.0] a00d608 Allocate HTTP.status from http's designated workspace.
Tollef Fog Heen
tfheen at varnish-cache.org
Thu May 24 14:51:10 CEST 2012
commit a00d6085e6a25613ba97862c97bd3dc9bf1e7094
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_http.c b/bin/varnishd/cache_http.c
index 5ce1b6a..76b3f86 100644
--- a/bin/varnishd/cache_http.c
+++ b/bin/varnishd/cache_http.c
@@ -1078,7 +1078,7 @@ http_Write(struct worker *w, const struct http *hp, int resp)
l = WRW_WriteH(w, &hp->hd[HTTP_HDR_PROTO], " ");
WSLH(w, fd, 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