Blame SOURCES/varnish-6.0.8.CVE-2022-23959.patch

e96d9a
diff --git a/bin/varnishd/cache/cache_req_body.c b/bin/varnishd/cache/cache_req_body.c
e96d9a
index 463b75b..982bd73 100644
e96d9a
--- a/bin/varnishd/cache/cache_req_body.c
e96d9a
+++ b/bin/varnishd/cache/cache_req_body.c
e96d9a
@@ -254,6 +254,8 @@ VRB_Ignore(struct req *req)
e96d9a
 	if (req->req_body_status == REQ_BODY_WITH_LEN ||
e96d9a
 	    req->req_body_status == REQ_BODY_WITHOUT_LEN)
e96d9a
 		(void)VRB_Iterate(req, httpq_req_body_discard, NULL);
e96d9a
+	if (req->req_body_status == REQ_BODY_FAIL)
e96d9a
+		req->doclose = SC_RX_BODY;
e96d9a
 	return(0);
e96d9a
 }
e96d9a