plugins/mod_saslauth.lua
changeset 2721 cf97b85c27b5
parent 2647 0ddb3c4dc9d1
child 2724 3fcf1048a896
--- a/plugins/mod_saslauth.lua	Sat Feb 27 19:46:04 2010 +0000
+++ b/plugins/mod_saslauth.lua	Mon Mar 01 16:02:59 2010 +0000
@@ -36,7 +36,9 @@
 
 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)