Commit 17031bf4 authored by Piers Lauder's avatar Piers Lauder

fix incorrect size calc. in IMAP4_SSL.read

parent 6fe3d700
......@@ -1059,7 +1059,7 @@ class IMAP4_SSL(IMAP4):
# sslobj.read() sometimes returns < size bytes
data = self.sslobj.read(size)
while len(data) < size:
data += self.sslobj.read(len(data)-size)
data += self.sslobj.read(size-len(data))
return data
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment