From: Stefan Fritsch Date: Wed, 28 Dec 2011 16:33:11 +0000 (+0000) Subject: Fix handling of piped, syslog, or inherited ErrorLog entries X-Git-Tag: 2.5.0-alpha~7621 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7f188926f73457ae029d572fd7b6e790e8f4fde6;p=apache Fix handling of piped, syslog, or inherited ErrorLog entries git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1225223 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/core.c b/server/core.c index 5f133bca06..3caf9e7b95 100644 --- a/server/core.c +++ b/server/core.c @@ -4344,7 +4344,8 @@ AP_DECLARE(int) ap_sys_privileges_handlers(int inc) static int check_errorlog_dir(apr_pool_t *p, server_rec *s) { - if (s->error_fname[0] == '|' && strcmp(s->error_fname, "syslog") == 0) { + if (!s->error_fname || s->error_fname[0] == '|' + || strcmp(s->error_fname, "syslog") == 0) { return APR_SUCCESS; } else {