[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[minion-cvs] Fix a bug when sending to a server with a screwed up TLS
Update of /home/minion/cvsroot/src/minion/lib/mixminion
In directory moria.mit.edu:/tmp/cvs-serv30910/lib/mixminion
Modified Files:
MMTPClient.py
Log Message:
Fix a bug when sending to a server with a screwed up TLS
Index: MMTPClient.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/lib/mixminion/MMTPClient.py,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -d -r1.31 -r1.32
--- MMTPClient.py 17 May 2003 00:08:43 -0000 1.31
+++ MMTPClient.py 30 May 2003 08:29:45 -0000 1.32
@@ -136,6 +136,8 @@
# first newline.
# we don't really want 100; we just want up to the newline.
inp = self.tls.read(100)
+ if inp in (0, None):
+ raise MixProtocolError("Connection closed during protocol negotiation.")
while "\n" not in inp and len(inp) < 100:
inp += self.tls.read(100)
self.protocol = None