]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
* modules/ssl/ssl_engine_vars.c (ssl_var_log_handler_c): Fix
authorJoe Orton <jorton@apache.org>
Thu, 23 Oct 2003 13:12:38 +0000 (13:12 +0000)
committerJoe Orton <jorton@apache.org>
Thu, 23 Oct 2003 13:12:38 +0000 (13:12 +0000)
segfault on a non-SSL request.

PR: 22741
Submitted by: Gary E. Miller <gem@rellim.com>

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101534 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
modules/ssl/ssl_engine_vars.c

diff --git a/CHANGES b/CHANGES
index 1c46f6c18d04193b626569ce65a648b53b11fe54..e186910116202ecd8ec16addf52dd6401b2f17ce 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -2,6 +2,9 @@ Changes with Apache 2.1.0-dev
 
   [Remove entries to the current 2.0 section below, when backported]
 
+  *) mod_ssl: Fix segfault on a non-SSL request if the the 'c' log
+     format code is used. PR 22741. [Gary E. Miller <gem@rellim.com>]
+
   *) Set the scoreboard state to indicate logging prior to running 
      logging hooks so that server-status will show 'L' for hung loggers
      instead of 'W'.  [Jeff Trawick]
index eeb331c0f2295956371857d5896ff8dce5d05f77..fa4afca610ac134d979c2882ee0a3750a5802d13 100644 (file)
@@ -655,7 +655,7 @@ static const char *ssl_var_log_handler_c(request_rec *r, char *a)
     SSLConnRec *sslconn = myConnConfig(r->connection);
     char *result;
 
-    if (sslconn->ssl == NULL)
+    if (sslconn == NULL || sslconn->ssl == NULL)
         return NULL;
     result = NULL;
     if (strEQ(a, "version"))