[6.0] 38d515a99 Unbogotify slightly
Dridi Boukelmoune
dridi.boukelmoune at gmail.com
Thu Aug 16 08:52:54 UTC 2018
commit 38d515a992f6bf572965b6bf31e9f19bcdc41cfa
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 2b7f695fa..cb9c7d3f2 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