]> granicus.if.org Git - apache/commitdiff
Stop the loop when we have found the correct filter, or when the filter
authorRyan Bloom <rbb@apache.org>
Tue, 5 Mar 2002 05:21:13 +0000 (05:21 +0000)
committerRyan Bloom <rbb@apache.org>
Tue, 5 Mar 2002 05:21:13 +0000 (05:21 +0000)
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

index c1488e64d518ea2f84e96e63a0c3d5800021bd8a..6f82c186746e2cc6fb8c0bac6db0983f16d9e176 100644 (file)
@@ -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;
                     }
                 }