mod_saslauth: Unlock globals while loading cyrus

This commit is contained in:
Matthew Wild 2010-03-01 16:02:59 +00:00
parent 27991d0a7b
commit b73fce8d46

View file

@ -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)