diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2011-10-01 17:30:58 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2011-10-01 17:30:58 (GMT) |
commit | f06eb46918f11220d13e7170dcb17929498e3294 (patch) | |
tree | b7bc0a2251723756a39553f075864c052f5563c1 /Modules | |
parent | 564f89036fbecfc03ca4152e9de8b291887111a4 (diff) | |
download | cpython-f06eb46918f11220d13e7170dcb17929498e3294.zip cpython-f06eb46918f11220d13e7170dcb17929498e3294.tar.gz cpython-f06eb46918f11220d13e7170dcb17929498e3294.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 80b661f..dd61660 100644 --- a/Modules/_ssl.c +++ b/Modules/_ssl.c @@ -702,7 +702,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) { |