Commit 1302cc86 authored by Jeff Trawick's avatar Jeff Trawick
Browse files

Fix a segfault caused by mod_ext_filter when the external filter

program does not exist.

I wish I understood why I didn't hit this problem in the normal
case :(


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87551 13f79535-47bb-0310-9956-ffa450edef68
parent ed9e1247
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
Changes with Apache 2.0b1

  *) Fix a segfault caused by mod_ext_filter when the external filter 
     program does not exist. [Jeff Trawick]

  *) Fix an output truncation error when on an HTTP >= 1.0 request an
     object of size between DEFAULT_BUCKET_SIZE and AP_MIN_BYTES_TO_WRITE 
     was served through mod_charset_lite (or anything else that would
+3 −1
Original line number Diff line number Diff line
@@ -421,7 +421,9 @@ static apr_status_t init_ext_filter_process(ap_filter_t *f)
     * be open.
     */

    apr_register_cleanup(ctx->p, ctx->proc->in, NULL, ef_close_file);
    apr_register_cleanup(ctx->p, ctx->proc->in, 
                         apr_null_cleanup, /* other mechanism */
                         ef_close_file);

#if APR_FILES_AS_SOCKETS
    {