From: Bill Stoddard Date: Sun, 22 Oct 2000 15:48:34 +0000 (+0000) Subject: Correct a check to see if we are attempting to remove a filter that has X-Git-Tag: APACHE_2_0_ALPHA_8~278 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d915406c82ae1fb442790db15718923bf76b57f5;p=apache Correct a check to see if we are attempting to remove a filter that has already been removed from the stack. Hummm, seems to me we should not attempt to remove filters multiple times.... git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86705 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/util_filter.c b/server/util_filter.c index dcd7c06a29..c84e098171 100644 --- a/server/util_filter.c +++ b/server/util_filter.c @@ -172,10 +172,10 @@ AP_DECLARE(void) ap_remove_output_filter(ap_filter_t *f) } while (curr->next != f) { + curr = curr->next; if (curr == NULL) { return; } - curr = curr->next; } curr->next = f->next ? f->next : NULL; }