[6.0] 4da4a8e3a Remove extraneous VSB_new()

Reza Naghibi reza at naghibi.com
Wed Aug 19 13:15:07 UTC 2020


commit 4da4a8e3afe5ae0c115195ffb8b86dadbdb317dc
Author: Reza Naghibi <reza at naghibi.com>
Date:   Wed Aug 12 11:32:10 2020 -0400

    Remove extraneous VSB_new()
    
    This came from the H2 backport c3902d57ff253eb7bf90f067c98e40f3bc5cad70
    Fixes #3382

diff --git a/bin/varnishd/http2/cache_http2_deliver.c b/bin/varnishd/http2/cache_http2_deliver.c
index ee9f40cb2..304dab2de 100644
--- a/bin/varnishd/http2/cache_http2_deliver.c
+++ b/bin/varnishd/http2/cache_http2_deliver.c
@@ -230,7 +230,6 @@ h2_build_headers(struct vsb *resp, struct req *req)
 	ssize_t sz, sz1;
 
 	l = WS_ReserveAll(req->ws);
-	AN(VSB_new(resp, req->ws->f, l, VSB_FIXEDLEN));
 	if (l < 10) {
 		WS_Release(req->ws, 0);
 		return (-1);


More information about the varnish-commit mailing list