From: Brian Pane Date: Sat, 30 Mar 2002 22:48:39 +0000 (+0000) Subject: Fix for a bug that I introduced when eliminating the single-byte X-Git-Tag: 2.0.34~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=94de8923dba848c60553c4f3cd594f45875cc428;p=apache Fix for a bug that I introduced when eliminating the single-byte reads in mod_cgi: eof wasn't treated as an error condition when reading the script headers, so we were delivering a 200 when a CGI script produced no output. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94342 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/util_script.c b/server/util_script.c index 7a790d577d..d5f6f893e1 100644 --- a/server/util_script.c +++ b/server/util_script.c @@ -636,7 +636,7 @@ static int getsfunc_BRIGADE(char *buf, int len, void *arg) rv = apr_bucket_read(e, &bucket_data, &bucket_data_len, APR_BLOCK_READ); - if (!APR_STATUS_IS_SUCCESS(rv)) { + if (!APR_STATUS_IS_SUCCESS(rv) || (bucket_data_len == 0)) { return 0; } src = bucket_data;