From: Giovanni Bechis Date: Thu, 8 Jun 2023 09:24:21 +0000 (+0000) Subject: fix return codes X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=51e28dcdecb2a90c2f05b12f98785228def714b1;p=thirdparty%2Fapache%2Fhttpd.git fix return codes spotted by Yann Ylavic git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910304 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/filters/mod_ext_filter.c b/modules/filters/mod_ext_filter.c index 3944847c8de..0d2ae72b57f 100644 --- a/modules/filters/mod_ext_filter.c +++ b/modules/filters/mod_ext_filter.c @@ -747,13 +747,13 @@ static apr_status_t check_filter_process_on_eos(ef_ctx_t *ctx, request_rec *r) ap_log_rerror(APLOG_MARK, APLOG_ERR, APR_SUCCESS, r, APLOGNO(10452) "child process %s killed by signal %d, uri=%s", ctx->filter->command, exitcode, r->uri); - return HTTP_INTERNAL_SERVER_ERROR; + return APR_EGENERAL; } else if (exitcode != 0) { ap_log_rerror(APLOG_MARK, APLOG_ERR, APR_SUCCESS, r, APLOGNO(10453) "child process %s exited with non-zero status %d, " "uri=%s", ctx->filter->command, exitcode, r->uri); - return HTTP_INTERNAL_SERVER_ERROR; + return APR_EGENERAL; } } @@ -766,7 +766,7 @@ static apr_status_t check_filter_process_on_eos(ef_ctx_t *ctx, request_rec *r) * bb, dropping the previous content of bb (the input) */ -static int ef_unified_filter(ap_filter_t *f, apr_bucket_brigade *bb) +static apr_status_t ef_unified_filter(ap_filter_t *f, apr_bucket_brigade *bb) { request_rec *r = f->r; conn_rec *c = r->connection;