Diff

util/sasl.lua @ 3366:a2a242321901

util.sasl, util.sasl_cyrus: Use method:mechanisms() in method:select(), instead of using the mechanisms list directly (fixes a traceback).
author Waqas Hussain <waqas20@gmail.com>
date Wed, 14 Jul 2010 20:21:51 +0500
parent 3365:32dc830d976c
child 3373:cd6836586a6a
line wrap: on
line diff
--- a/util/sasl.lua	Wed Jul 14 20:10:35 2010 +0500
+++ b/util/sasl.lua	Wed Jul 14 20:21:51 2010 +0500
@@ -111,7 +111,7 @@
 		return false;
 	end
 	
-	self.mech_i = self.mechs[mechanism];
+	self.mech_i = mechanisms[self.mechanisms()[mechanism] and mechanism];
 	return (self.mech_i ~= nil);
 end