From e417013fbc8de81a113578e30a2a453e40e04726 Mon Sep 17 00:00:00 2001 From: Ryan Bloom Date: Sun, 31 Dec 2000 19:19:07 +0000 Subject: [PATCH] Use a real pool to dup the error log file descriptor. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87560 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES | 2 ++ server/log.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 6052e1f76a..8d283e79db 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,7 @@ Changes with Apache 2.0b1 + *) Use a real pool to dup the error log descriptor. [Ryan Bloom] + *) Fix a segfault caused by mod_ext_filter when the external filter program does not exist. [Jeff Trawick] diff --git a/server/log.c b/server/log.c index 7a67f6b39d..df4196ee2c 100644 --- a/server/log.c +++ b/server/log.c @@ -286,7 +286,7 @@ void ap_open_logs(server_rec *s_main, apr_pool_t *p) /* replace stderr with this new log */ apr_flush(s_main->error_log); apr_open_stderr(&errfile, p); - if ((rc = apr_dupfile(&errfile, s_main->error_log, NULL)) != APR_SUCCESS) { + if ((rc = apr_dupfile(&errfile, s_main->error_log, p)) != APR_SUCCESS) { ap_log_error(APLOG_MARK, APLOG_CRIT, rc, s_main, "unable to replace stderr with error_log"); } else { -- 2.50.1