]> granicus.if.org Git - apache/commitdiff
insure that we die quickly without looping etc. if somebody messes up
authorGreg Ames <gregames@apache.org>
Fri, 2 Nov 2001 15:17:06 +0000 (15:17 +0000)
committerGreg Ames <gregames@apache.org>
Fri, 2 Nov 2001 15:17:06 +0000 (15:17 +0000)
*readbytes again.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91726 13f79535-47bb-0310-9956-ffa450edef68

server/core.c

index c97c72864dc8e8090841d9e3a6795b638a9c7024..88251f6ab4d86c6080f17e5b601043bbfe2f0939 100644 (file)
@@ -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;