mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
Issue #13034: When decoding some SSL certificates, the subjectAltName extension could be unreported.
This commit is contained in:
commit
a02a12c517
4 changed files with 61 additions and 1 deletions
|
@ -595,7 +595,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) {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue