]> granicus.if.org Git - apache/commitdiff
Yeah, let's just return this segment to how it was a few hours ago.
authorJustin Erenkrantz <jerenkrantz@apache.org>
Wed, 10 Oct 2001 19:19:16 +0000 (19:19 +0000)
committerJustin Erenkrantz <jerenkrantz@apache.org>
Wed, 10 Oct 2001 19:19:16 +0000 (19:19 +0000)
If the status code is anything other than SUCCESS for PEEK, it isn't
good.  Just return the value.

(I thought it should be this, but I wasn't 100% sure.  Peer review == good.)

Submitted by: Will Rowe

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

server/core.c

index 9d26574bc6e29dc45385b177be0e4723ed38273c..1286dadcd4c9dd58b3843029eaf54bae0b8e3a5e 100644 (file)
@@ -2805,10 +2805,7 @@ static int core_input_filter(ap_filter_t *f, apr_bucket_brigade *b, ap_input_mod
 
             rv = apr_bucket_read(e, &str, &len, APR_NONBLOCK_READ);
 
-            if (APR_STATUS_IS_EAGAIN(rv)) {
-                return APR_EOF;
-            }
-            else if (rv != APR_SUCCESS)
+            if (rv != APR_SUCCESS)
                 return rv;
 
             c = str;