# HG changeset patch # User Waqas Hussain # Date 1279119925 -18000 # Node ID 6a5d779249498107b0df595ed801c31037e788df # Parent a4bb658d3fcbd5962ea8bd9eadf7ba50918f817b util.sasl: Use the proper session-specific table of mechanisms when selecting a mechanism, and not the global table. diff -r a4bb658d3fcb -r 6a5d77924949 util/sasl.lua --- 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