From 6c147aa1c5f100b81cbebf275edaed6cf2730cc6 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 7 Feb 2016 18:39:06 +0900 Subject: [PATCH] nghttpx: Remove unnecessary condition --- src/shrpx_http2_session.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shrpx_http2_session.cc b/src/shrpx_http2_session.cc index 5cbe571c..8f400e97 100644 --- a/src/shrpx_http2_session.cc +++ b/src/shrpx_http2_session.cc @@ -1750,7 +1750,7 @@ int Http2Session::tls_handshake() { SSLOG(INFO, this) << "SSL/TLS handshake completed"; } - if (!get_config()->conn.downstream.no_tls && !get_config()->tls.insecure && + if (!get_config()->tls.insecure && ssl::check_cert(conn_.tls.ssl, addr_) != 0) { return -1; }