commit | f06eb46918f11220d13e7170dcb17929498e3294 | [log] [tgz] |
---|---|---|
author | Antoine Pitrou <solipsis@pitrou.net> | Sat Oct 01 19:30:58 2011 +0200 |
committer | Antoine Pitrou <solipsis@pitrou.net> | Sat Oct 01 19:30:58 2011 +0200 |
tree | b7bc0a2251723756a39553f075864c052f5563c1 | |
parent | 564f89036fbecfc03ca4152e9de8b291887111a4 [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 80b661f..dd61660 100644 --- a/Modules/_ssl.c +++ b/Modules/_ssl.c
@@ -702,7 +702,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) {