aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-03-01 16:03:37 +0000
committerMatthew Wild <mwild1@gmail.com>2010-03-01 16:03:37 +0000
commit2c5542977bd0a7c51d1aa3f93a5799f85a7f762d (patch)
treedb962bacf02bc2b8a284e00c6076127ae27899bf
parentb73fce8d46e187ce41712346b49e6778cca135a9 (diff)
parent969ea466e40a8e624228cc4631fb03808ac884f3 (diff)
downloadprosody-2c5542977bd0a7c51d1aa3f93a5799f85a7f762d.tar.gz
prosody-2c5542977bd0a7c51d1aa3f93a5799f85a7f762d.zip
Merge with 0.7/waqas
-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