diff options
author | Waqas Hussain <waqas20@gmail.com> | 2009-03-30 05:26:10 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2009-03-30 05:26:10 +0500 |
commit | 2365831f7dfc9f7b3d3ce66ce38c19ad0f2a93e4 (patch) | |
tree | 4b0dccb5b7193b25852a97056da30c8a7afa6b19 /plugins/mod_saslauth.lua | |
parent | 1de71a88b9f0b705474e6f89f08711229adc447b (diff) | |
download | prosody-2365831f7dfc9f7b3d3ce66ce38c19ad0f2a93e4.tar.gz prosody-2365831f7dfc9f7b3d3ce66ce38c19ad0f2a93e4.zip |
Fixed: Some nil access bugs
Diffstat (limited to 'plugins/mod_saslauth.lua')
-rw-r--r-- | plugins/mod_saslauth.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_saslauth.lua b/plugins/mod_saslauth.lua index 3018b825..31d62325 100644 --- a/plugins/mod_saslauth.lua +++ b/plugins/mod_saslauth.lua @@ -74,7 +74,7 @@ local function sasl_handler(session, stanza) -- FIXME ignoring duplicates because ejabberd does if config.get(session.host or "*", "core", "anonymous_login") and stanza.attr.mechanism ~= "ANONYMOUS" then return session.send(build_reply("failure", "invalid-mechanism")); - elseif mechanism == "ANONYMOUS" then + elseif stanza.attr.mechanism == "ANONYMOUS" then return session.send(build_reply("failure", "mechanism-too-weak")); end session.sasl_handler = new_sasl(stanza.attr.mechanism, session.host, password_callback); |