diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2011-10-01 17:20:25 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2011-10-01 17:20:25 (GMT) |
commit | d8c347a8de9d7b76d0980ac18511667ab1cb2a4f (patch) | |
tree | da515e94ccd1ef0045cd89af72afe48b193fd0ce /Modules | |
parent | 5a4a1096949335736ccad2b102fd91ebdd2e25b0 (diff) | |
download | cpython-d8c347a8de9d7b76d0980ac18511667ab1cb2a4f.zip cpython-d8c347a8de9d7b76d0980ac18511667ab1cb2a4f.tar.gz cpython-d8c347a8de9d7b76d0980ac18511667ab1cb2a4f.tar.bz2 |
Issue #13034: When decoding some SSL certificates, the subjectAltName extension could be unreported.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_ssl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_ssl.c b/Modules/_ssl.c index b27353a..84ec477 100644 --- a/Modules/_ssl.c +++ b/Modules/_ssl.c @@ -578,7 +578,7 @@ _get_peer_alt_names (X509 *certificate) { /* get a memory buffer */ biobuf = BIO_new(BIO_s_mem()); - i = 0; + i = -1; while ((i = X509_get_ext_by_NID( certificate, NID_subject_alt_name, i)) >= 0) { |