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