Issue #13034: When decoding some SSL certificates, the subjectAltName extension could be unreported.

This commit is contained in:
Antoine Pitrou 2011-10-01 19:22:30 +02:00
commit a02a12c517
4 changed files with 61 additions and 1 deletions

View file

@ -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) {