diff options
author | Eric Covener <covener@apache.org> | 2022-06-01 14:33:53 +0200 |
---|---|---|
committer | Eric Covener <covener@apache.org> | 2022-06-01 14:33:53 +0200 |
commit | ea2c3409f6ad08961760f70a201c4118e409d7cc (patch) | |
tree | 64d0326577dd7a7abd59b3c40bf9f4d8db431c90 /server | |
parent | use a liberal default limit for LimitRequestBody of 1GB (diff) | |
download | apache2-ea2c3409f6ad08961760f70a201c4118e409d7cc.tar.xz apache2-ea2c3409f6ad08961760f70a201c4118e409d7cc.zip |
handle large writes in ap_rputs
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1901500 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'server')
-rw-r--r-- | server/protocol.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; |