]> granicus.if.org Git - apache/commitdiff
* Fix comment and optimize retrieval of loglevel.
authorRuediger Pluem <rpluem@apache.org>
Thu, 2 Apr 2009 06:41:50 +0000 (06:41 +0000)
committerRuediger Pluem <rpluem@apache.org>
Thu, 2 Apr 2009 06:41:50 +0000 (06:41 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@761181 13f79535-47bb-0310-9956-ffa450edef68

modules/ssl/ssl_engine_kernel.c

index c5179f94d6e8315fe2be9eb14e615ae6ff78ffda..f768a1d94033213f33bf446b8e9e48c4c7eba512 100644 (file)
@@ -1959,13 +1959,8 @@ static int ssl_find_vhost(void *servername, conn_rec *c, server_rec *s)
         }
 
         /*
-         * We also need to make sure that the correct mctx
-         * (accessed through the c->base_server->module_config vector)
-         * is assigned to the connection - the CRL callback e.g.
-         * makes use of it for retrieving its store (mctx->crl).
-         * Since logging in callbacks uses c->base_server in many
-         * cases, it also ensures that these messages are routed
-         * to the proper log.
+         * Save the found server into our SSLConnRec for later
+         * retrieval
          */
         sslcon->server = s;
 
@@ -1976,7 +1971,7 @@ static int ssl_find_vhost(void *servername, conn_rec *c, server_rec *s)
          * (and the first vhost doesn't use APLOG_DEBUG), then
          * we need to set that callback here.
          */
-        if (mySrvFromConn(c)->loglevel >= APLOG_DEBUG) {
+        if (s->loglevel >= APLOG_DEBUG) {
             BIO_set_callback(SSL_get_rbio(ssl), ssl_io_data_cb);
             BIO_set_callback_arg(SSL_get_rbio(ssl), (void *)ssl);
         }