]> 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/modules/ssl@101534 13f79535-47bb-0310-9956-ffa450edef68

ssl_engine_vars.c

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"))