commit | d8c347a8de9d7b76d0980ac18511667ab1cb2a4f | [log] [tgz] |
---|---|---|
author | Antoine Pitrou <solipsis@pitrou.net> | Sat Oct 01 19:20:25 2011 +0200 |
committer | Antoine Pitrou <solipsis@pitrou.net> | Sat Oct 01 19:20:25 2011 +0200 |
tree | da515e94ccd1ef0045cd89af72afe48b193fd0ce | |
parent | 5a4a1096949335736ccad2b102fd91ebdd2e25b0 [diff] |
Issue #13034: When decoding some SSL certificates, the subjectAltName extension could be unreported.
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 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) {