Skip to content

Commit e42ae91

Browse files
authored
bpo-24334: Remove inaccurate match_hostname call (#6211)
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 <[email protected]>
1 parent d8b291a commit e42ae91

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)