From 2f43d87c489c87a9a82f7abd383e03e596ebd412 Mon Sep 17 00:00:00 2001 From: Ryan Bloom Date: Tue, 5 Mar 2002 05:21:13 +0000 Subject: [PATCH] Stop the loop when we have found the correct filter, or when the filter list is over. Do not stop if the next filter is NULL. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93708 13f79535-47bb-0310-9956-ffa450edef68 --- server/util_filter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/util_filter.c b/server/util_filter.c index c1488e64d5..6f82c18674 100644 --- a/server/util_filter.c +++ b/server/util_filter.c @@ -344,7 +344,7 @@ static ap_filter_t *add_any_filter_handle(ap_filter_rec_t *frec, void *ctx, */ if (*r_filters != *c_filters) { first = *r_filters; - while (first && first->next && (first->next != (*outf))) { + while (first && (first->next != (*outf))) { first = first->next; } } -- 2.50.1