# HG changeset patch # User Waqas Hussain # Date 1267450667 -18000 # Node ID 289f68e704daf355d6794cd523635bfce408e0b0 # Parent 4e4a24a1288d06f438df152b9309cd9ae7a3cb60 util.sasl_cyrus: Ensure the mechanisms table is available after a failed auth attempt. diff -r 4e4a24a1288d -r 289f68e704da util/sasl_cyrus.lua --- 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