diff options
author | Tobias Markmann <tm@ayena.de> | 2009-12-30 16:43:08 +0100 |
---|---|---|
committer | Tobias Markmann <tm@ayena.de> | 2009-12-30 16:43:08 +0100 |
commit | 52fe0318ef86169bfc937ccdb85cb486111c35e3 (patch) | |
tree | c0882bb1477d698882f815642e5069f6c6fdb0aa /util | |
parent | 8b90969a60d3c734eef00c84bc22147ac26c397f (diff) | |
download | prosody-52fe0318ef86169bfc937ccdb85cb486111c35e3.tar.gz prosody-52fe0318ef86169bfc937ccdb85cb486111c35e3.zip |
util.sasl_cyrus: Report an error if Cyrus SASL init fails.
Diffstat (limited to 'util')
-rw-r--r-- | util/sasl_cyrus.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/util/sasl_cyrus.lua b/util/sasl_cyrus.lua index 610257ca..b42bee07 100644 --- a/util/sasl_cyrus.lua +++ b/util/sasl_cyrus.lua @@ -35,8 +35,11 @@ local initialized = false; local function init(service_name) if not initialized then - if pcall(cyrussasl.server_init, service_name) then + local st, errmsg = pcall(cyrussasl.server_init, service_name); + if st then initialized = true; + else + log("error", "Failed to initialize CyrusSASL: %s", errmsg); end end end |