Mon, 01 Mar 2010 18:37:47 +0500
util.sasl_cyrus: Ensure the mechanisms table is available after a failed auth attempt.
util/sasl_cyrus.lua | file | annotate | diff | comparison | revisions |
--- 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