diff options
author | Matthew Wild <mwild1@gmail.com> | 2010-02-15 22:56:15 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2010-02-15 22:56:15 +0000 |
commit | a7e7b8488b605d4a4b1b59355a57408e1bacd017 (patch) | |
tree | 586f0ba6f3bcbcb44f27a1074ed4708e5b92116e | |
parent | 609442222a1190bf0b79c6f59532d963c8291d91 (diff) | |
download | prosody-a7e7b8488b605d4a4b1b59355a57408e1bacd017.tar.gz prosody-a7e7b8488b605d4a4b1b59355a57408e1bacd017.zip |
mod_saslauth: Correct syntax for gracefully handling a missing cyrussasl library
-rw-r--r-- | plugins/mod_saslauth.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_saslauth.lua b/plugins/mod_saslauth.lua index 398ae9f8..eeb4f8d8 100644 --- a/plugins/mod_saslauth.lua +++ b/plugins/mod_saslauth.lua @@ -36,8 +36,8 @@ local xmlns_stanzas ='urn:ietf:params:xml:ns:xmpp-stanzas'; local new_sasl; if sasl_backend == "cyrus" then - local cyrus, err = pcall(require, "util.sasl_cyrus"); - if cyrus then + local ok, cyrus = pcall(require, "util.sasl_cyrus"); + if ok then local cyrus_new = cyrus.new; new_sasl = function(realm) return cyrus_new(realm, module:get_option("cyrus_service_name") or "xmpp"); |