[master] 367c381 Missed part of last commit.
Poul-Henning Kamp
phk at varnish-cache.org
Wed Dec 7 11:32:14 CET 2011
commit 367c3817b1fef87cf3c008f0014415d1339c5812
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Wed Dec 7 10:31:56 2011 +0000
Missed part of last commit.
diff --git a/lib/libvmod_std/vmod_std.c b/lib/libvmod_std/vmod_std.c
index 14d8503..fc371e7 100644
--- a/lib/libvmod_std/vmod_std.c
+++ b/lib/libvmod_std/vmod_std.c
@@ -192,7 +192,7 @@ vmod_collect(struct sess *sp, enum gethdr_e e, const char *h)
(void)h;
if (e == HDR_REQ)
http_CollectHdr(sp->http, h);
- else if (e == HDR_BERESP)
- http_CollectHdr(sp->wrk->beresp, h);
+ else if (e == HDR_BERESP && sp->wrk->busyobj != NULL)
+ http_CollectHdr(sp->wrk->busyobj->beresp, h);
}
More information about the varnish-commit
mailing list