Changeset

2721:cf97b85c27b5

mod_saslauth: Unlock globals while loading cyrus
author Matthew Wild <mwild1@gmail.com>
date Mon, 01 Mar 2010 16:02:59 +0000
parents 2718:cffb2145b0f9
children 2722:2781d063afa0
files plugins/mod_saslauth.lua
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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)