aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_saslauth.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2008-10-04 15:24:52 +0100
committerMatthew Wild <mwild1@gmail.com>2008-10-04 15:24:52 +0100
commit762a906e3654c3179c025a2886e9b7f4821f8666 (patch)
tree8cc8af97438201a5dd9ce9e6c0fc24daefab02ba /plugins/mod_saslauth.lua
parent3bac5046af2a4af1c2364e9ce6d1038b7052feb3 (diff)
downloadprosody-762a906e3654c3179c025a2886e9b7f4821f8666.tar.gz
prosody-762a906e3654c3179c025a2886e9b7f4821f8666.zip
Fix for destruction of unauthed SASL sessions
Diffstat (limited to 'plugins/mod_saslauth.lua')
-rw-r--r--plugins/mod_saslauth.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_saslauth.lua b/plugins/mod_saslauth.lua
index 06bd510b..8ef1e09d 100644
--- a/plugins/mod_saslauth.lua
+++ b/plugins/mod_saslauth.lua
@@ -33,6 +33,7 @@ add_handler("c2s_unauthed", "auth", xmlns_sasl,
local success, err = sessionmanager.make_authenticated(session, username);
if not success then
sessionmanager.destroy_session(session);
+ return;
end
session.sasl_handler = nil;
session.connhandler = new_connhandler("xmpp-client", session);