diff options
author | Waqas Hussain <waqas20@gmail.com> | 2010-03-01 18:37:47 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2010-03-01 18:37:47 +0500 |
commit | 969ea466e40a8e624228cc4631fb03808ac884f3 (patch) | |
tree | 3c129f441546036fd31fca9e06474ffe37be621b /util | |
parent | 29d4e6789526ce6edd26d26f12aef3388635cd36 (diff) | |
download | prosody-969ea466e40a8e624228cc4631fb03808ac884f3.tar.gz prosody-969ea466e40a8e624228cc4631fb03808ac884f3.zip |
util.sasl_cyrus: Ensure the mechanisms table is available after a failed auth attempt.
Diffstat (limited to 'util')
-rw-r--r-- | util/sasl_cyrus.lua | 1 |
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 |