From 969ea466e40a8e624228cc4631fb03808ac884f3 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Mon, 1 Mar 2010 18:37:47 +0500 Subject: util.sasl_cyrus: Ensure the mechanisms table is available after a failed auth attempt. --- util/sasl_cyrus.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/util/sasl_cyrus.lua b/util/sasl_cyrus.lua index 57c6ba3c..980af598 100644 --- a/util/sasl_cyrus.lua +++ b/util/sasl_cyrus.lua @@ -87,6 +87,7 @@ end -- 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 -- cgit v1.2.3