Skip to content

Commit

Permalink
Stack req.filters
Browse files Browse the repository at this point in the history
  • Loading branch information
nigoroll committed Jan 31, 2024
1 parent adfecf6 commit 97c08cb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions bin/varnishd/cache/cache_req_body.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,16 @@ vrb_pull(struct req *req, ssize_t maxsize, objiterate_f *func, void *priv)
INIT_OBJ(ctx, VRT_CTX_MAGIC);
VCL_Req2Ctx(ctx, req);

if (req->vfp_filter_list != NULL &&
VCL_StackVFP(vfc, req->vcl, req->vfp_filter_list)) {
(void)VFP_Error(vfc, "req.body filters failed");
req->req_body_status = BS_ERROR;
HSH_DerefBoc(req->wrk, req->body_oc);
AZ(HSH_DerefObjCore(req->wrk, &req->body_oc, 0));
return (-1);
}


if (VFP_Open(ctx, vfc) < 0) {
req->req_body_status = BS_ERROR;
HSH_DerefBoc(req->wrk, req->body_oc);
Expand Down

0 comments on commit 97c08cb

Please sign in to comment.