Software /
code /
prosody
Diff
plugins/mod_saslauth.lua @ 938:663f75dd7b42
Fixed: Some nil access bugs
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Mon, 30 Mar 2009 05:26:10 +0500 |
parent | 935:efe3eaaeff34 |
child | 1042:a3d77353c18a |
line wrap: on
line diff
--- a/plugins/mod_saslauth.lua Mon Mar 30 04:39:12 2009 +0500 +++ b/plugins/mod_saslauth.lua Mon Mar 30 05:26:10 2009 +0500 @@ -74,7 +74,7 @@ -- 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);