# HG changeset patch # User Matthew Wild # Date 1267459417 0 # Node ID 2781d063afa032fcf7ac65411cdb80807d70b922 # Parent cf97b85c27b542fe2327c99c8ea4f37930951df0# Parent 289f68e704daf355d6794cd523635bfce408e0b0 Merge with 0.7/waqas diff -r cf97b85c27b5 -r 2781d063afa0 util/sasl_cyrus.lua --- a/util/sasl_cyrus.lua Mon Mar 01 16:02:59 2010 +0000 +++ b/util/sasl_cyrus.lua Mon Mar 01 16:03:37 2010 +0000 @@ -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