aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-10-05 14:51:53 +0100
committerMatthew Wild <mwild1@gmail.com>2009-10-05 14:51:53 +0100
commit6e6adedce2f10c4bfe0d20d978298abd97a89575 (patch)
tree006aa4bb6fdd714f3b6ec7c97e2ca578467d193e
parent1930de3de81d9d1f89d12dd854c075cf510dd2f5 (diff)
downloadprosody-6e6adedce2f10c4bfe0d20d978298abd97a89575.tar.gz
prosody-6e6adedce2f10c4bfe0d20d978298abd97a89575.zip
mod_tls: Mark session as not secure before negotiating TLS
-rw-r--r--plugins/mod_tls.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_tls.lua b/plugins/mod_tls.lua
index 7fb9bb81..cd4f3acf 100644
--- a/plugins/mod_tls.lua
+++ b/plugins/mod_tls.lua
@@ -34,6 +34,7 @@ module:add_handler("s2sin_unauthed", "starttls", xmlns_starttls,
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");