]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
On the trunk:
authorStefan Eissing <icing@apache.org>
Tue, 3 Apr 2018 13:06:02 +0000 (13:06 +0000)
committerStefan Eissing <icing@apache.org>
Tue, 3 Apr 2018 13:06:02 +0000 (13:06 +0000)
* mod_http2: calculate unencrypted connection sniffing base64 only when log level is at required height. [Ruediger Pluem]

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

modules/http2/h2_h2.c

index fe5fa5429e3cf0fd55bfa885c09820bdd9b144aa..72e938c029fee0b64384a2fdade86f21f6fc5a75 100644 (file)
@@ -637,7 +637,7 @@ int h2_h2_process_conn(conn_rec* c)
                 }
                 h2_ctx_protocol_set(ctx, h2_h2_is_tls(c)? "h2" : "h2c");
             }
-            else {
+            else if (APLOGctrace2(c)) {
                 ap_log_cerror(APLOG_MARK, APLOG_TRACE2, 0, c,
                               "h2_h2, not detected in %d bytes(base64): %s", 
                               (int)slen, h2_util_base64url_encode(s, slen, c->pool));