net.server_event: Remove access to starttls method when starttls is negotiated - fixes offering starttls to client who are already using it (thanks darkrain and Adium)

Mon, 18 Jan 2010 18:20:03 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Mon, 18 Jan 2010 18:20:03 +0000
changeset 2462
2d81cc25b5a6
parent 2461
a6a50cf0e444
child 2463
d9ff0190eb4a

net.server_event: Remove access to starttls method when starttls is negotiated - fixes offering starttls to client who are already using it (thanks darkrain and Adium)

net/server_event.lua file | annotate | diff | comparison | revisions
--- a/net/server_event.lua	Mon Jan 18 17:14:41 2010 +0000
+++ b/net/server_event.lua	Mon Jan 18 18:20:03 2010 +0000
@@ -415,6 +415,7 @@
 			self:_lock( true, true, false )
 			debug "ssl session delayed until writebuffer is empty..."
 		end
+		self.starttls = false;
 		return true
 	end
 	

mercurial