util.sasl: Use the proper session-specific table of mechanisms when selecting a mechanism, and not the global table.

Wed, 14 Jul 2010 20:05:25 +0500

author
Waqas Hussain <waqas20@gmail.com>
date
Wed, 14 Jul 2010 20:05:25 +0500
changeset 3364
6a5d77924949
parent 3363
a4bb658d3fcb
child 3365
32dc830d976c

util.sasl: Use the proper session-specific table of mechanisms when selecting a mechanism, and not the global table.

util/sasl.lua file | annotate | diff | comparison | revisions
--- a/util/sasl.lua	Wed Jul 14 19:56:57 2010 +0500
+++ b/util/sasl.lua	Wed Jul 14 20:05:25 2010 +0500
@@ -98,7 +98,7 @@
 			end
 		end
 	end
-	self["possible_mechanisms"] = mechanisms;
+	self.mechs = mechanisms;
 	return mechanisms;
 end
 
@@ -108,7 +108,7 @@
 		return false;
 	end
 	
-	self.mech_i = mechanisms[mechanism];
+	self.mech_i = self.mechs[mechanism];
 	return (self.mech_i ~= nil);
 end
 

mercurial