[6.0] 4fe90267a Skip magic check when on boc when gunzip streaming
Reza Naghibi
reza at naghibi.com
Tue Apr 20 18:14:05 UTC 2021
commit 4fe90267ada64b880eac5cd72285c56b66a7ad10
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 732c8db62..3085a384a 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