From ea2c3409f6ad08961760f70a201c4118e409d7cc Mon Sep 17 00:00:00 2001 From: Eric Covener Date: Wed, 1 Jun 2022 12:33:53 +0000 Subject: handle large writes in ap_rputs git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1901500 13f79535-47bb-0310-9956-ffa450edef68 --- server/protocol.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'server') diff --git a/server/protocol.c b/server/protocol.c index 8d9b4fd169..3c33ec9b5f 100644 --- a/server/protocol.c +++ b/server/protocol.c @@ -2064,6 +2064,9 @@ AP_DECLARE(int) ap_rputc(int c, request_rec *r) AP_DECLARE(int) ap_rwrite(const void *buf, int nbyte, request_rec *r) { + if (nbyte < 0) + return -1; + if (r->connection->aborted) return -1; -- cgit v1.2.1