]> granicus.if.org Git - apache/commitdiff
Fix handling of piped, syslog, or inherited ErrorLog entries
authorRainer Jung <rjung@apache.org>
Tue, 31 Jan 2012 22:31:36 +0000 (22:31 +0000)
committerRainer Jung <rjung@apache.org>
Tue, 31 Jan 2012 22:31:36 +0000 (22:31 +0000)
Backport of r1225223 from trunk.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1238833 13f79535-47bb-0310-9956-ffa450edef68

server/core.c

index c0c523bb8b27e9ad799cb4ec2cf71668dd7b8671..eb8147b84c313dbf251c94e1af8d2522e4c825ed 100644 (file)
@@ -4355,7 +4355,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 {