[3.7] bpo-24334: Remove inaccurate match_hostname call (GH-6211) (#6212)
Commit141c5e8c
re-added match_hostname() call. The resurrection of the function call was never intended and was solely a merge mistake. Signed-off-by: Christian Heimes <christian@python.org> (cherry picked from commite42ae91509
) Co-authored-by: Christian Heimes <christian@python.org>
This commit is contained in:
parent
ac5602746e
commit
1a0bb626f4
|
@ -1106,11 +1106,6 @@ class SSLSocket(socket):
|
|||
if timeout == 0.0 and block:
|
||||
self.settimeout(None)
|
||||
self._sslobj.do_handshake()
|
||||
if self.context.check_hostname:
|
||||
if not self.server_hostname:
|
||||
raise ValueError("check_hostname needs server_hostname "
|
||||
"argument")
|
||||
match_hostname(self.getpeercert(), self.server_hostname)
|
||||
finally:
|
||||
self.settimeout(timeout)
|
||||
|
||||
|
|
Loading…
Reference in New Issue