From 74f1fca10ea47b63e2a66ff0aeee83cb4b49ee1e Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Wed, 14 Jul 2010 20:21:51 +0500 Subject: util.sasl, util.sasl_cyrus: Use method:mechanisms() in method:select(), instead of using the mechanisms list directly (fixes a traceback). --- util/sasl_cyrus.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'util/sasl_cyrus.lua') 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 -- cgit v1.2.3