Wed, 14 Jul 2010 20:05:25 +0500
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