]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
mod_ext_filter: fix test for onfail behaviour
authorNick Kew <niq@apache.org>
Mon, 5 Jan 2009 15:13:25 +0000 (15:13 +0000)
committerNick Kew <niq@apache.org>
Mon, 5 Jan 2009 15:13:25 +0000 (15:13 +0000)
(accidentally omitted from r731388)

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

modules/filters/mod_ext_filter.c

index bdb1b464a2e3233794c7893c37c0cf9679ee225f..aed7813f2e30bdb050f2ee359b012b695b0fb1fb 100644 (file)
@@ -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 {