]> granicus.if.org Git - apache/commitdiff
return from ssl_callback_LogTracingState if sc->nLogLevel < SSL_LOG_INFO
authorDoug MacEachern <dougm@apache.org>
Thu, 22 Nov 2001 01:40:26 +0000 (01:40 +0000)
committerDoug MacEachern <dougm@apache.org>
Thu, 22 Nov 2001 01:40:26 +0000 (01:40 +0000)
else there are 5 (expensive!) calls made to ssl_var_lookup on every request
for info that will never be logged
PR:
Obtained from:
Submitted by:
Reviewed by:

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

modules/ssl/ssl_engine_kernel.c

index 569e8c878433ab55aae0164f8782fe0b69d01856..0ac1225b3c7a520eeb974f56c9c05da5ae029abb 100644 (file)
@@ -1614,6 +1614,11 @@ void ssl_callback_LogTracingState(SSL *ssl, int where, int rc)
     if ((sc = mySrvConfig(s)) == NULL)
         return;
 
+    if (sc->nLogLevel < SSL_LOG_INFO) {
+        /* nothing todo here */
+        return;
+    }
+
     /*
      * create the various trace messages
      */