Software /
code /
prosody
Changeset
3364:6a5d77924949
util.sasl: Use the proper session-specific table of mechanisms when selecting a mechanism, and not the global table.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Wed, 14 Jul 2010 20:05:25 +0500 |
parents | 3363:a4bb658d3fcb |
children | 3365:32dc830d976c |
files | util/sasl.lua |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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