Sophie

Sophie

distrib > Mandriva > 2011.0 > i586 > media > main-updates-src > by-pkgid > 70c6f73b7de273a264c9a8c049dad72b > files > 3

python-2.7.2-2.2.src.rpm

diff -Naurp Python-2.7.2/Modules/_ssl.c Python-2.7.2.oden/Modules/_ssl.c
--- Python-2.7.2/Modules/_ssl.c	2011-06-11 15:46:27.000000000 +0000
+++ Python-2.7.2.oden/Modules/_ssl.c	2012-06-19 11:54:51.000000000 +0000
@@ -369,7 +369,7 @@ newPySSLObject(PySocketSockObject *Sock,
     }
 
     /* ssl compatibility */
-    SSL_CTX_set_options(self->ctx, SSL_OP_ALL);
+    SSL_CTX_set_options(self->ctx, SSL_OP_ALL & ~SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS);
 
     verification_mode = SSL_VERIFY_NONE;
     if (certreq == PY_SSL_CERT_OPTIONAL)