From: Nick Kew Date: Mon, 5 Jan 2009 15:13:25 +0000 (+0000) Subject: mod_ext_filter: fix test for onfail behaviour X-Git-Tag: 2.3.2~222 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=283822b0d340121c3cac94d26d40e6f03dadb6d1;p=thirdparty%2Fapache%2Fhttpd.git mod_ext_filter: fix test for onfail behaviour (accidentally omitted from r731388) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@731594 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/filters/mod_ext_filter.c b/modules/filters/mod_ext_filter.c index bdb1b464a2e..aed7813f2e3 100644 --- a/modules/filters/mod_ext_filter.c +++ b/modules/filters/mod_ext_filter.c @@ -873,9 +873,9 @@ static apr_status_t ef_output_filter(ap_filter_t *f, apr_bucket_brigade *bb) ap_log_rerror(APLOG_MARK, APLOG_ERR, rv, r, "can't initialise output filter %s: %s", f->frec->name, - ctx->dc->onfail ? "removing" : "aborting"); + (ctx->dc->onfail == 1) ? "removing" : "aborting"); ap_remove_output_filter(f); - if (ctx->dc->onfail) { + if (ctx->dc->onfail == 1) { return ap_pass_brigade(f->next, bb); } else { @@ -926,9 +926,9 @@ static int ef_input_filter(ap_filter_t *f, apr_bucket_brigade *bb, ap_log_rerror(APLOG_MARK, APLOG_ERR, rv, f->r, "can't initialise input filter %s: %s", f->frec->name, - ctx->dc->onfail ? "removing" : "aborting"); + (ctx->dc->onfail == 1) ? "removing" : "aborting"); ap_remove_input_filter(f); - if (ctx->dc->onfail) { + if (ctx->dc->onfail == 1) { return ap_get_brigade(f->next, bb, mode, block, readbytes); } else {