[pypy-commit] pypy stdlib-2.7.3: CPython Issue #13034: When decoding some SSL certificates, the subjectAltName extension could be unreported.
amauryfa
noreply at buildbot.pypy.org
Wed Jun 13 19:49:24 CEST 2012
Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: stdlib-2.7.3
Changeset: r55650:3d4685c9e8c0
Date: 2012-06-13 19:48 +0200
http://bitbucket.org/pypy/pypy/changeset/3d4685c9e8c0/
Log: CPython Issue #13034: When decoding some SSL certificates, the
subjectAltName extension could be unreported.
diff --git a/pypy/module/_ssl/interp_ssl.py b/pypy/module/_ssl/interp_ssl.py
--- a/pypy/module/_ssl/interp_ssl.py
+++ b/pypy/module/_ssl/interp_ssl.py
@@ -547,7 +547,7 @@
try:
alt_names_w = []
- i = 0
+ i = -1
while True:
i = libssl_X509_get_ext_by_NID(
certificate, NID_subject_alt_name, i)
More information about the pypy-commit
mailing list