Full_Name: Volker Borchert
Version: 2.4.0, probably others as well
OS: SunOS 5.6, 5.7
Submission from: (NULL) (192.54.46.4)


If there is any whitespace after the "|" in a SSLLog directive, the
whole Apache server will die a sudden death without logging anything
anywhere.

Since whitespace after the "|" works in TransferLog directives, this
is in my humble opinion counter-intuitive and should be fixed.

The following change to ssl_engine_log.c works for me, anybody else's
mileage may vary:

------- ssl_engine_log.c -------
*** -   Wed Oct  4 09:37:34 2000
--- ssl_engine_log.c    Tue Oct  3 14:16:18 2000
***************
*** 98,104 ****
          if (strEQ(sc->szLogFile, "/dev/null"))
              return;
          else if (sc->szLogFile[0] == '|') {
!             szLogFile = ap_server_root_relative(p, sc->szLogFile+1);
              if ((pl = ap_open_piped_log(p, szLogFile)) == NULL) {
                  ssl_log(s, SSL_LOG_ERROR|SSL_ADD_ERRNO,
                          "Cannot open reliable pipe to SSL logfile filter %s",
szLogFile);
--- 98,106 ----
          if (strEQ(sc->szLogFile, "/dev/null"))
              return;
          else if (sc->szLogFile[0] == '|') {
!           for (szLogFile = sc->szLogFile+1; ap_isspace(*szLogFile); szLogFile++)
!               ;
!             szLogFile = ap_server_root_relative(p, szLogFile);
              if ((pl = ap_open_piped_log(p, szLogFile)) == NULL) {
                  ssl_log(s, SSL_LOG_ERROR|SSL_ADD_ERRNO,
                          "Cannot open reliable pipe to SSL logfile filter %s",
szLogFile);

At first glance, 2.6.6 will still show the same behavior unless the
semantics of ap_server_root_relative() have changed.


______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl)                   www.modssl.org
User Support Mailing List                      [EMAIL PROTECTED]
Automated List Manager                            [EMAIL PROTECTED]

Reply via email to