23586950 problem in UTILITY/PYTHON s11u3-sru
authorJohn Beck <John.Beck@Oracle.COM>
Wed, 15 Jun 2016 13:53:36 -0700
branchs11u3-sru
changeset 6234 b914b6717525
parent 6233 bbdba2b0d364
child 6244 baf8e49e7799
23586950 problem in UTILITY/PYTHON
components/python/python27/patches/26-smtplib.patch
components/python/python34/patches/27-smtplib.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/python/python27/patches/26-smtplib.patch	Wed Jun 15 13:53:36 2016 -0700
@@ -0,0 +1,18 @@
+This patch comes from upstream:
+
+https://hg.python.org/cpython/rev/d590114c2394
+
+--- a/Lib/smtplib.py	Sun Nov 08 01:03:52 2015 -0500
++++ b/Lib/smtplib.py	Sat Jun 11 13:18:56 2016 -0700
+@@ -656,6 +656,11 @@
+             self.ehlo_resp = None
+             self.esmtp_features = {}
+             self.does_esmtp = 0
++        else:
++            # RFC 3207:
++            # 501 Syntax error (no parameters allowed)
++            # 454 TLS not available due to temporary reason
++            raise SMTPResponseException(resp, reply)
+         return (resp, reply)
+ 
+     def sendmail(self, from_addr, to_addrs, msg, mail_options=[],
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/python/python34/patches/27-smtplib.patch	Wed Jun 15 13:53:36 2016 -0700
@@ -0,0 +1,18 @@
+This patch comes from upstream:
+
+https://hg.python.org/cpython/rev/d590114c2394
+
+--- a/Lib/smtplib.py	Sun Nov 08 01:03:52 2015 -0500
++++ b/Lib/smtplib.py	Sat Jun 11 13:18:56 2016 -0700
+@@ -695,6 +695,11 @@
+             self.ehlo_resp = None
+             self.esmtp_features = {}
+             self.does_esmtp = 0
++        else:
++            # RFC 3207:
++            # 501 Syntax error (no parameters allowed)
++            # 454 TLS not available due to temporary reason
++            raise SMTPResponseException(resp, reply)
+         return (resp, reply)
+ 
+     def sendmail(self, from_addr, to_addrs, msg, mail_options=[],