aboutsummaryrefslogtreecommitdiffstats
path: root/util/sasl_cyrus.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-03-01 18:37:47 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-03-01 18:37:47 +0500
commit969ea466e40a8e624228cc4631fb03808ac884f3 (patch)
tree3c129f441546036fd31fca9e06474ffe37be621b /util/sasl_cyrus.lua
parent29d4e6789526ce6edd26d26f12aef3388635cd36 (diff)
downloadprosody-969ea466e40a8e624228cc4631fb03808ac884f3.tar.gz
prosody-969ea466e40a8e624228cc4631fb03808ac884f3.zip
util.sasl_cyrus: Ensure the mechanisms table is available after a failed auth attempt.
Diffstat (limited to 'util/sasl_cyrus.lua')
-rw-r--r--util/sasl_cyrus.lua1
1 files changed, 1 insertions, 0 deletions
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