From: Ryan Bloom Date: Tue, 5 Mar 2002 05:21:13 +0000 (+0000) Subject: Stop the loop when we have found the correct filter, or when the filter X-Git-Tag: 2.0.33~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f43d87c489c87a9a82f7abd383e03e596ebd412;p=thirdparty%2Fapache%2Fhttpd.git 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 --- diff --git a/server/util_filter.c b/server/util_filter.c index c1488e64d51..6f82c186746 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; } }