httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n..@apache.org
Subject svn commit: r415138 - in /httpd/httpd/branches/2.2.x: STATUS modules/filters/mod_filter.c
Date Sun, 18 Jun 2006 13:57:54 GMT
Author: niq
Date: Sun Jun 18 06:57:54 2006
New Revision: 415138

URL: http://svn.apache.org/viewvc?rev=415138&view=rev
Log:
Backport fix for PR#39672 (Don't try to insert an undefined filter)
and chop outdated blurb.

Modified:
    httpd/httpd/branches/2.2.x/STATUS
    httpd/httpd/branches/2.2.x/modules/filters/mod_filter.c

Modified: httpd/httpd/branches/2.2.x/STATUS
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.2.x/STATUS?rev=415138&r1=415137&r2=415138&view=diff
==============================================================================
--- httpd/httpd/branches/2.2.x/STATUS (original)
+++ httpd/httpd/branches/2.2.x/STATUS Sun Jun 18 06:57:54 2006
@@ -76,12 +76,6 @@
 PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
   [ start all new proposals below, under PATCHES PROPOSED. ]
 
-    * mod_filter: Don't try to insert a filter that doesn't exist
-      PR#39672
-      Trunk version: http://svn.apache.org/viewvc?view=rev&revision=410079
-      2.2.x (identical)
-      +1: niq, trawick, rpluem
-
     * Worker MPM: On graceless shutdown or restart, send signals to
       each worker thread to wake them up if they're polling on a
       Keep-Alive connection.  PR 38737.

Modified: httpd/httpd/branches/2.2.x/modules/filters/mod_filter.c
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.2.x/modules/filters/mod_filter.c?rev=415138&r1=415137&r2=415138&view=diff
==============================================================================
--- httpd/httpd/branches/2.2.x/modules/filters/mod_filter.c (original)
+++ httpd/httpd/branches/2.2.x/modules/filters/mod_filter.c Sun Jun 18 06:57:54 2006
@@ -14,20 +14,6 @@
  * limitations under the License.
  */
 
-/* Originally contributed by Nick Kew <nick webthing.com>
- *
- * At the time of writing, this is designed primarily for use with
- * httpd 2.2, but is also back-compatible with 2.0.  It is likely
- * that the 2.0 and 2.2 versions may diverge in future, as additional
- * capabilities for 2.2 are added, including updates to util_filter.
- *
- * 21/9/04: Unifying data structures with util_filter.
- * From now on, until and unless we backport, mod_filter requires
- * util_filter.h from CVS or httpd-2.1+ to compile.
- * There's a minimal patch for httpd-2.0 users maintained by Nick
- * to compile mod_filter at http://www.apache.org/~niq/
- */
-
 #define APR_WANT_STRFUNC
 #include "apr_want.h"
 #include "apr_lib.h"
@@ -755,6 +741,11 @@
 
     for (p = cfg->chain; p; p = p->next) {
         filter = apr_hash_get(cfg->live_filters, p->fname, APR_HASH_KEY_STRING);
+        if (filter == NULL) {
+            ap_log_rerror(APLOG_MARK, APLOG_WARNING, 0, r,
+                          "Unknown filter %s not added", p->fname);
+            continue;
+        }
         ap_add_output_filter_handle(filter, NULL, r, r->connection);
 #ifndef NO_PROTOCOL
         if (ranges && (filter->proto_flags



Mime
View raw message