mod_tls: Mark session as not secure before negotiating TLS
authorMatthew Wild <mwild1@gmail.com>
Mon, 05 Oct 2009 14:51:53 +0100
changeset 1910 14c043d7fb77
parent 1909 84027581c995
child 1911 bfe120db1ec4
mod_tls: Mark session as not secure before negotiating TLS
plugins/mod_tls.lua
--- a/plugins/mod_tls.lua	Mon Oct 05 14:50:27 2009 +0100
+++ b/plugins/mod_tls.lua	Mon Oct 05 14:51:53 2009 +0100
@@ -34,6 +34,7 @@
 				session:reset_stream();
 				session.conn.starttls();
 				session.log("info", "TLS negotiation started for incoming s2s...");
+				session.secure = false;
 			else
 				-- FIXME: What reply?
 				session.log("warn", "Attempt to start TLS, but TLS is not available on this s2s connection");