From d9319436f0a9e592f57fbc1958a2e2936cc3e675 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Wed, 14 Jul 2010 20:05:25 +0500 Subject: util.sasl: Use the proper session-specific table of mechanisms when selecting a mechanism, and not the global table. --- util/sasl.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'util/sasl.lua') diff --git a/util/sasl.lua b/util/sasl.lua index 1b90086e..a7e151a2 100644 --- a/util/sasl.lua +++ b/util/sasl.lua @@ -98,7 +98,7 @@ function method:mechanisms() end end end - self["possible_mechanisms"] = mechanisms; + self.mechs = mechanisms; return mechanisms; end @@ -108,7 +108,7 @@ function method:select(mechanism) return false; end - self.mech_i = mechanisms[mechanism]; + self.mech_i = self.mechs[mechanism]; return (self.mech_i ~= nil); end -- cgit v1.2.3