mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-16 01:46:15 +01:00
Port fix for CVE-2016-0772 from upstream
This commit is contained in:
parent
51b245e1bb
commit
0b86d5175a
1 changed files with 5 additions and 0 deletions
|
|
@ -651,6 +651,11 @@ def starttls(self, keyfile=None, certfile=None):
|
|||
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=[],
|
||||
|
|
|
|||
Loading…
Reference in a new issue