From e65ab8f53fb0af0610165db3d308ea21815cd8e5 Mon Sep 17 00:00:00 2001 From: BodaciousPie Date: Wed, 19 Feb 2020 14:12:58 +0000 Subject: [PATCH] Removing the input filter using the corresponding API --- src/msc_filters.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/msc_filters.c b/src/msc_filters.c index 3a18e21..a85cb4f 100644 --- a/src/msc_filters.c +++ b/src/msc_filters.c @@ -19,7 +19,7 @@ apr_status_t input_filter(ap_filter_t *f, apr_bucket_brigade *pbbOut, { ap_log_error(APLOG_MARK, APLOG_ERR | APLOG_NOERRNO, 0, f->r->server, "ModSecurity: Internal Error: msr is null in input filter."); - ap_remove_output_filter(f); + ap_remove_input_filter(f); return send_error_bucket(msr, f, HTTP_INTERNAL_SERVER_ERROR); } @@ -58,7 +58,7 @@ apr_status_t input_filter(ap_filter_t *f, apr_bucket_brigade *pbbOut, it = process_intervention(msr->t, r); if (it != N_INTERVENTION_STATUS) { - ap_remove_output_filter(f); + ap_remove_input_filter(f); return send_error_bucket(msr, f, it); }