[master] 867b3c2 Unbogotify slightly
Poul-Henning Kamp
phk at FreeBSD.org
Wed May 2 22:54:06 UTC 2018
commit 867b3c23341b2e77e599598458883428c536d94b
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Wed May 2 22:52:55 2018 +0000
Unbogotify slightly
diff --git a/bin/varnishd/http2/cache_http2_deliver.c b/bin/varnishd/http2/cache_http2_deliver.c
index 2b7f695..cb9c7d3 100644
--- a/bin/varnishd/http2/cache_http2_deliver.c
+++ b/bin/varnishd/http2/cache_http2_deliver.c
@@ -266,12 +266,10 @@ h2_deliver(struct req *req, struct boc *boc, int sendbody)
WS_Release(req->ws, 0);
/* XXX someone into H2 please add appropriate error handling */
- while (sendbody) {
+ if (sendbody) {
err = VDP_push(req, &h2_vdp, NULL, 1);
- if (err)
- break;
- err = VDP_DeliverObj(req);
- break;
+ if (!err)
+ err = VDP_DeliverObj(req);
}
AZ(req->wrk->v1l);
More information about the varnish-commit
mailing list