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

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