[master] ad1762243 NULL any filters for VRT_fail() and return(synth())
Nils Goroll
nils.goroll at uplex.de
Sun Apr 5 14:16:08 UTC 2020
commit ad1762243268bbf625203f8b2fab2441d05f9d12
Author: Nils Goroll <nils.goroll at uplex.de>
Date: Sun Apr 5 14:44:56 2020 +0200
NULL any filters for VRT_fail() and return(synth())
The synthetic response has nothing to do with the filters set for
the original body.
See next commit for implicit test
diff --git a/bin/varnishd/cache/cache_req_fsm.c b/bin/varnishd/cache/cache_req_fsm.c
index aee7140c6..7a9e7060e 100644
--- a/bin/varnishd/cache/cache_req_fsm.c
+++ b/bin/varnishd/cache/cache_req_fsm.c
@@ -256,6 +256,7 @@ cnt_vclfail(const struct worker *wrk, struct req *req)
req->err_reason = "VCL failed";
req->req_step = R_STP_SYNTH;
req->doclose = SC_VCL_FAILURE;
+ req->filter_list = NULL;
return (REQ_FSM_MORE);
}
@@ -283,6 +284,7 @@ cnt_synth(struct worker *wrk, struct req *req)
Resp_Setup_Synth(req);
+ req->filter_list = NULL;
synth_body = VSB_new_auto();
AN(synth_body);
More information about the varnish-commit
mailing list