From: Justin Erenkrantz Date: Fri, 5 Oct 2001 08:51:43 +0000 (+0000) Subject: I believe it is a kosher for a filter to return EOS, but return APR_SUCCESS X-Git-Tag: 2.0.26~99 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2cb3776fae39bfaa404ad291b8d81a1d8c761990;p=apache I believe it is a kosher for a filter to return EOS, but return APR_SUCCESS via ap_get_brigade. So, we should treat this as end-of-input. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91311 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/protocol.c b/server/protocol.c index 3bdba03c5a..9aebceb5cb 100644 --- a/server/protocol.c +++ b/server/protocol.c @@ -227,6 +227,10 @@ AP_CORE_DECLARE(int) ap_getline(char *s, int n, request_rec *r, int fold) } } e = APR_BRIGADE_FIRST(b); + if (APR_BUCKET_IS_EOS(e)) { + apr_brigade_destroy(b); + return -1; + } if (e->length == 0) { apr_bucket_delete(e); continue;