[master] ea3c109c5 Skip magic check when on boc when gunzip streaming
Poul-Henning Kamp
phk at FreeBSD.org
Tue May 21 07:25:09 UTC 2019
commit ea3c109c58314a78bbfec3a5997ab3c62a9c2016
Author: Reza Naghibi <reza at naghibi.com>
Date: Tue May 14 13:12:22 2019 -0400
Skip magic check when on boc when gunzip streaming
We do not hold a reference, the magic can be unstable.
diff --git a/bin/varnishd/cache/cache_gzip.c b/bin/varnishd/cache/cache_gzip.c
index 9be9b1d7c..46146beb3 100644
--- a/bin/varnishd/cache/cache_gzip.c
+++ b/bin/varnishd/cache/cache_gzip.c
@@ -294,7 +294,6 @@ vdp_gunzip_init(struct req *req, void **priv)
CHECK_OBJ_NOTNULL(req, REQ_MAGIC);
CHECK_OBJ_NOTNULL(req->objcore, OBJCORE_MAGIC);
- CHECK_OBJ_ORNULL(req->objcore->boc, BOC_MAGIC);
vg = VGZ_NewGunzip(req->vsl, "U D -");
AN(vg);
More information about the varnish-commit
mailing list