[4.0] e6a2d41 Correctly account the length of vcl_backend_error{} synthetic body.

Poul-Henning Kamp phk at FreeBSD.org
Thu Mar 13 10:24:31 CET 2014


commit e6a2d417bd256f7a6970174036bafb0419030d76
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Tue Mar 11 14:22:33 2014 +0000

    Correctly account the length of vcl_backend_error{} synthetic body.

diff --git a/bin/varnishd/cache/cache_fetch.c b/bin/varnishd/cache/cache_fetch.c
index 3aabd8d..297f6f2 100644
--- a/bin/varnishd/cache/cache_fetch.c
+++ b/bin/varnishd/cache/cache_fetch.c
@@ -695,7 +695,6 @@ vbf_stp_error(struct worker *wrk, struct busyobj *bo)
 				    "No space for %zd bytes of synth body", l);
 			} else {
 				memcpy(st->ptr, VSB_data(bo->synth_body), l);
-				st->len = l;
 				VBO_extend(bo, l);
 			}
 		}



More information about the varnish-commit mailing list