mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 21:57:45 +03:00
mod_saslauth: Unlock globals while loading cyrus
This commit is contained in:
parent
27991d0a7b
commit
b73fce8d46
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue