* modules/ssl/ssl_engine_kernel.c (ssl_hook_UserCheck): Fix possible
NULL pointer dereference in some configurations.
PR: 31848
Reviewed by: jorton, wrowe, jim
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.0.x@125749
13f79535-47bb-0310-9956-
ffa450edef68
svn rev 106653
+1: wrowe, nd, trawick
- *) mod_ssl: Fix an possible NULL pointer dereference in some configs.
- http://nagoya.apache.org/bugzilla/showattachment.cgi?attach_id=13182
- PR: 31848
- +1: jorton, wrowe, jim
-
*) several changes to improve logging of connection-oriented errors, including
ap_log_cerror() API (needs minor bump in addition to changes below)
http://cvs.apache.org/viewcvs.cgi/httpd-2.0/server/core.c?r1=1.289&r2=1.291
* - ssl not enabled
* - client did not present a certificate
*/
- if (!(sc->enabled && sslconn->ssl && sslconn->client_cert) ||
+ if (!(sc->enabled && sslconn && sslconn->ssl && sslconn->client_cert) ||
!(dc->nOptions & SSL_OPT_FAKEBASICAUTH) || r->user)
{
return DECLINED;