diff options
author | Matthew Wild <mwild1@gmail.com> | 2010-03-01 16:02:59 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2010-03-01 16:02:59 +0000 |
commit | b73fce8d46e187ce41712346b49e6778cca135a9 (patch) | |
tree | 55fd015c7e446912f4d7de66804ef4b07aeed4d1 /plugins | |
parent | 27991d0a7b03692045378f083f37bbe5b8ac4cef (diff) | |
download | prosody-b73fce8d46e187ce41712346b49e6778cca135a9.tar.gz prosody-b73fce8d46e187ce41712346b49e6778cca135a9.zip |
mod_saslauth: Unlock globals while loading cyrus
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_saslauth.lua | 2 |
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) |