From 0dacbadb392bc73dc4c5c02b606704300d0a3792 Mon Sep 17 00:00:00 2001 From: Greg Ames Date: Fri, 2 Nov 2001 15:17:06 +0000 Subject: [PATCH] insure that we die quickly without looping etc. if somebody messes up *readbytes again. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91726 13f79535-47bb-0310-9956-ffa450edef68 --- server/core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/core.c b/server/core.c index c97c72864d..88251f6ab4 100644 --- a/server/core.c +++ b/server/core.c @@ -2871,6 +2871,8 @@ static int core_input_filter(ap_filter_t *f, apr_bucket_brigade *b, ap_input_mod apr_bucket *e; apr_bucket_brigade *newbb; + AP_DEBUG_ASSERT(*readbytes > 0); + if (APR_BRIGADE_EMPTY(ctx->b)) return APR_EOF; -- 2.40.0