]> granicus.if.org Git - apache/commitdiff
Correct a check to see if we are attempting to remove a filter that has
authorBill Stoddard <stoddard@apache.org>
Sun, 22 Oct 2000 15:48:34 +0000 (15:48 +0000)
committerBill Stoddard <stoddard@apache.org>
Sun, 22 Oct 2000 15:48:34 +0000 (15:48 +0000)
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

server/util_filter.c

index dcd7c06a29ae0f099d828c2921e75b760baebd57..c84e0981711dab1c6c777b2ac0455c789b7a32b1 100644 (file)
@@ -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;
 }