aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-10-18 18:50:35 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-10-18 18:50:35 +0500
commit23ff2cf40e39193700e4e0424ba5d482a6f095af (patch)
tree9640fb2d4f969bf4c95993d606a519c2389b4911
parentcd2d2e8037ffdf30fd6a96456c3a00b87aadbbf9 (diff)
downloadprosody-23ff2cf40e39193700e4e0424ba5d482a6f095af.tar.gz
prosody-23ff2cf40e39193700e4e0424ba5d482a6f095af.zip
mod_saslauth: Fixed access of globals.
-rw-r--r--plugins/mod_saslauth.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_saslauth.lua b/plugins/mod_saslauth.lua
index ac705ca3..c0f57cd7 100644
--- a/plugins/mod_saslauth.lua
+++ b/plugins/mod_saslauth.lua
@@ -83,7 +83,7 @@ local function credentials_callback(mechanism, ...)
return response;
end
elseif mechanism == "DIGEST-MD5" then
- function func(x) return x; end
+ local function func(x) return x; end
local node, domain, realm, decoder = ...;
local prepped_node = nodeprep(node);
if not prepped_node then
@@ -153,7 +153,7 @@ module:add_event_hook("stream-features",
if config.get(session.host or "*", "core", "anonymous_login") then
features:tag("mechanism"):text("ANONYMOUS"):up();
else
- mechanisms = usermanager_get_supported_methods(session.host or "*");
+ local mechanisms = usermanager_get_supported_methods(session.host or "*");
for k, v in pairs(mechanisms) do
features:tag("mechanism"):text(k):up();
end