You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by tr...@apache.org on 2013/11/20 23:54:37 UTC

svn commit: r1543979 - /httpd/httpd/trunk/server/log.c

Author: trawick
Date: Wed Nov 20 22:54:37 2013
New Revision: 1543979

URL: http://svn.apache.org/r1543979
Log:
Follow-up to r1539988:

Make sure an error log provider has initialized before trying to log to it.
(A log function may be called in a window between closing stderr and opening logs.)

Modified:
    httpd/httpd/trunk/server/log.c

Modified: httpd/httpd/trunk/server/log.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/log.c?rev=1543979&r1=1543978&r2=1543979&view=diff
==============================================================================
--- httpd/httpd/trunk/server/log.c (original)
+++ httpd/httpd/trunk/server/log.c Wed Nov 20 22:54:37 2013
@@ -1118,11 +1118,12 @@ static void log_error_core(const char *f
         }
     }
 
-    if (!logf && !errorlog_provider) {
+    if (!logf && !(errorlog_provider && errorlog_provider_handle)) {
         /* There is no file to send the log message to (or it is
          * redirected to /dev/null and therefore any formating done below
-         * would be lost anyway) and there is no log provider available, so
-         * we just return here. */
+         * would be lost anyway) and there is no initialized log provider
+         * available, so we just return here.
+         */
         return;
     }