aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-03-01 16:02:59 +0000
committerMatthew Wild <mwild1@gmail.com>2010-03-01 16:02:59 +0000
commitb73fce8d46e187ce41712346b49e6778cca135a9 (patch)
tree55fd015c7e446912f4d7de66804ef4b07aeed4d1
parent27991d0a7b03692045378f083f37bbe5b8ac4cef (diff)
downloadprosody-b73fce8d46e187ce41712346b49e6778cca135a9.tar.gz
prosody-b73fce8d46e187ce41712346b49e6778cca135a9.zip
mod_saslauth: Unlock globals while loading cyrus
-rw-r--r--plugins/mod_saslauth.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/mod_saslauth.lua b/plugins/mod_saslauth.lua
index 0f4c8b4b..0f809bd8 100644
--- a/plugins/mod_saslauth.lua
+++ b/plugins/mod_saslauth.lua
@@ -36,7 +36,9 @@ local xmlns_stanzas ='urn:ietf:params:xml:ns:xmpp-stanzas';
local new_sasl;
if sasl_backend == "cyrus" then
+ prosody.unlock_globals();
local ok, cyrus = pcall(require, "util.sasl_cyrus");
+ prosody.lock_globals();
if ok then
local cyrus_new = cyrus.new;
new_sasl = function(realm)