diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2011-10-01 17:22:30 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2011-10-01 17:22:30 (GMT) |
commit | a02a12c517e69e457f4425aa5af6f55c36a6a39a (patch) | |
tree | d509c4f1e8216f73da9c32b6a4f4c466a84481ca /Modules/_ssl.c | |
parent | 07ac3ebd7ba6b42ba1adb07ec6075eb916d167b1 (diff) | |
parent | d8c347a8de9d7b76d0980ac18511667ab1cb2a4f (diff) | |
download | cpython-a02a12c517e69e457f4425aa5af6f55c36a6a39a.zip cpython-a02a12c517e69e457f4425aa5af6f55c36a6a39a.tar.gz cpython-a02a12c517e69e457f4425aa5af6f55c36a6a39a.tar.bz2 |
Issue #13034: When decoding some SSL certificates, the subjectAltName extension could be unreported.
Diffstat (limited to 'Modules/_ssl.c')
-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 3d44b61..7fee74c 100644 --- a/Modules/_ssl.c +++ b/Modules/_ssl.c @@ -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) { |