Software /
code /
prosody
Changeset
2720:289f68e704da
util.sasl_cyrus: Ensure the mechanisms table is available after a failed auth attempt.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Mon, 01 Mar 2010 18:37:47 +0500 |
parents | 2716:4e4a24a1288d |
children | 2722:2781d063afa0 |
files | util/sasl_cyrus.lua |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/util/sasl_cyrus.lua Thu Feb 25 18:25:17 2010 +0000 +++ b/util/sasl_cyrus.lua Mon Mar 01 18:37:47 2010 +0500 @@ -87,6 +87,7 @@ -- select a mechanism to use function method:select(mechanism) self.mechanism = mechanism; + if not self.mechs then self:mechanisms(); end return self.mechs[mechanism]; end