[master] 9bc248cb8 Always AZ VSB_finish()

Poul-Henning Kamp phk at FreeBSD.org
Wed Aug 22 07:12:10 UTC 2018


commit 9bc248cb8fea7b4c89a0a21ae9bd9dc38bf5c5df
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Wed Aug 22 07:00:07 2018 +0000

    Always AZ VSB_finish()

diff --git a/bin/varnishd/http2/cache_http2_deliver.c b/bin/varnishd/http2/cache_http2_deliver.c
index a36d657c0..aea59e9a8 100644
--- a/bin/varnishd/http2/cache_http2_deliver.c
+++ b/bin/varnishd/http2/cache_http2_deliver.c
@@ -243,7 +243,7 @@ h2_deliver(struct req *req, struct boc *boc, int sendbody)
 		AZ(h2_enc_len(&resp, 7, sz, 0));
 		AZ(VSB_bcat(&resp, r, sz));
 	}
-	VSB_finish(&resp);
+	AZ(VSB_finish(&resp));
 	sz = VSB_len(&resp);
 
 	AZ(req->wrk->v1l);


More information about the varnish-commit mailing list