Skip to content

Commit 1a0bb62

Browse files
miss-islingtontiran
andcommitted
[3.7] bpo-24334: Remove inaccurate match_hostname call (GH-6211) (#6212)
Commit 141c5e8 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 commit e42ae91) Co-authored-by: Christian Heimes <christian@python.org>
1 parent ac56027 commit 1a0bb62

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

Lib/ssl.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1106,11 +1106,6 @@ def do_handshake(self, block=False):
11061106
if timeout == 0.0 and block:
11071107
self.settimeout(None)
11081108
self._sslobj.do_handshake()
1109-
if self.context.check_hostname:
1110-
if not self.server_hostname:
1111-
raise ValueError("check_hostname needs server_hostname "
1112-
"argument")
1113-
match_hostname(self.getpeercert(), self.server_hostname)
11141109
finally:
11151110
self.settimeout(timeout)
11161111

0 commit comments

Comments
 (0)