diff options
author | Waqas Hussain <waqas20@gmail.com> | 2010-07-14 20:21:51 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2010-07-14 20:21:51 +0500 |
commit | 74f1fca10ea47b63e2a66ff0aeee83cb4b49ee1e (patch) | |
tree | 7d396676238e2dc010e947af0b9da048bcc95bee /util/sasl_cyrus.lua | |
parent | 81c3a58d1fed9f0e5713d005181b871c12843fd3 (diff) | |
download | prosody-74f1fca10ea47b63e2a66ff0aeee83cb4b49ee1e.tar.gz prosody-74f1fca10ea47b63e2a66ff0aeee83cb4b49ee1e.zip |
util.sasl, util.sasl_cyrus: Use method:mechanisms() in method:select(), instead of using the mechanisms list directly (fixes a traceback).
Diffstat (limited to 'util/sasl_cyrus.lua')
-rw-r--r-- | util/sasl_cyrus.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/util/sasl_cyrus.lua b/util/sasl_cyrus.lua index 5178f7cd..0676bcf7 100644 --- a/util/sasl_cyrus.lua +++ b/util/sasl_cyrus.lua @@ -144,8 +144,7 @@ end -- select a mechanism to use function method:select(mechanism) self.mechanism = mechanism; - if not self.mechs then self:mechanisms(); end - return self.mechs[mechanism]; + return self.mechanisms()[mechanism]; end -- feed new messages to process into the library |