Comparison

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
comparison
equal deleted inserted replaced
3365:32dc830d976c 3366:a2a242321901
109 function method:select(mechanism) 109 function method:select(mechanism)
110 if self.mech_i then 110 if self.mech_i then
111 return false; 111 return false;
112 end 112 end
113 113
114 self.mech_i = self.mechs[mechanism]; 114 self.mech_i = mechanisms[self.mechanisms()[mechanism] and mechanism];
115 return (self.mech_i ~= nil); 115 return (self.mech_i ~= nil);
116 end 116 end
117 117
118 -- feed new messages to process into the library 118 -- feed new messages to process into the library
119 function method:process(message) 119 function method:process(message)