This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients achipa, atrasatti, giampaolo.rodola, janssen, pitrou
Date 2011-09-23.16:23:11
SpamBayes Score 0.0012559142
Marked as misclassified No
Message-id <1316794992.49.0.645157278421.issue13034@psf.upfronthosting.co.za>
In-reply-to
Content
Thanks for reporting. This trivial patch seems to fix it (still needs a test):

diff -r 1b4fae183da3 Modules/_ssl.c
--- a/Modules/_ssl.c	Tue Aug 09 18:48:02 2011 -0500
+++ b/Modules/_ssl.c	Fri Sep 23 18:16:04 2011 +0200
@@ -590,7 +590,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) {
 

Yay for undocumented OpenSSL APIs with weird semantics.
History
Date User Action Args
2011-09-23 16:23:12pitrousetrecipients: + pitrou, janssen, giampaolo.rodola, atrasatti, achipa
2011-09-23 16:23:12pitrousetmessageid: <1316794992.49.0.645157278421.issue13034@psf.upfronthosting.co.za>
2011-09-23 16:23:11pitroulinkissue13034 messages
2011-09-23 16:23:11pitroucreate