summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Stoddard <stoddard@apache.org>2000-10-22 15:48:34 +0000
committerBill Stoddard <stoddard@apache.org>2000-10-22 15:48:34 +0000
commitd915406c82ae1fb442790db15718923bf76b57f5 (patch)
tree15c5dbb1fe5c47f65726946caf326bc011671af8
parent804a7c1eb9d957661559ee43fab683c03146e7f8 (diff)
downloadhttpd-d915406c82ae1fb442790db15718923bf76b57f5.tar.gz
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
-rw-r--r--server/util_filter.c2
1 files changed, 1 insertions, 1 deletions
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;
}