Fix typos in multiple files (GH-26689)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
This commit is contained in:
Binbin 2021-06-13 10:47:44 +08:00 committed by GitHub
parent 736ed6f7a9
commit 17b16e13bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
24 changed files with 1023 additions and 1023 deletions

View file

@ -368,7 +368,7 @@ def _ipaddress_match(cert_ipaddress, host_ip):
(section 1.7.2 - "Out of Scope").
"""
# OpenSSL may add a trailing newline to a subjectAltName's IP address,
# commonly woth IPv6 addresses. Strip off trailing \n.
# commonly with IPv6 addresses. Strip off trailing \n.
ip = _inet_paton(cert_ipaddress.rstrip())
return ip == host_ip