summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-10-01 17:30:58 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-10-01 17:30:58 (GMT)
commitf06eb46918f11220d13e7170dcb17929498e3294 (patch)
treeb7bc0a2251723756a39553f075864c052f5563c1 /Modules
parent564f89036fbecfc03ca4152e9de8b291887111a4 (diff)
downloadcpython-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.c2
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) {