diff options
author | Waqas Hussain <waqas20@gmail.com> | 2010-07-14 20:05:25 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2010-07-14 20:05:25 +0500 |
commit | d9319436f0a9e592f57fbc1958a2e2936cc3e675 (patch) | |
tree | f7f80d3c5c491b321d6358a471e6f5e7be1e2e0f | |
parent | fa595a9dd36744d8abc7a872674bee76cfec0991 (diff) | |
download | prosody-d9319436f0a9e592f57fbc1958a2e2936cc3e675.tar.gz prosody-d9319436f0a9e592f57fbc1958a2e2936cc3e675.zip |
util.sasl: Use the proper session-specific table of mechanisms when selecting a mechanism, and not the global table.
-rw-r--r-- | util/sasl.lua | 4 |
1 files changed, 2 insertions, 2 deletions
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 |