[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[minion-cvs] Fix another mmtp server bug; fortunately, nobody found ...



Update of /home/minion/cvsroot/src/minion/lib/mixminion/server
In directory moria.mit.edu:/tmp/cvs-serv6708/lib/mixminion/server

Modified Files:
	MMTPServer.py 
Log Message:
Fix another mmtp server bug; fortunately, nobody found this yet

Index: MMTPServer.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/lib/mixminion/server/MMTPServer.py,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- MMTPServer.py	10 Jan 2003 18:15:49 -0000	1.15
+++ MMTPServer.py	10 Jan 2003 19:29:29 -0000	1.16
@@ -523,11 +523,13 @@
         if not m:
             warn("Bad protocol list.  Closing connection to %s", self.address)
             self.shutdown(err=1)
+            return
         protocols = m.group(1).split(",")
         if "0.1" not in protocols:
             warn("Unsupported protocol list.  Closing connection to %s",
                  self.address)
-            self.shutdown(err=1); return
+            self.shutdown(err=1)
+            return
         else:
             trace("protocol ok (fd %s)", self.fd)
             self.finished = self.__sentProtocol