aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/sasl.lua2
-rw-r--r--util/sasl_cyrus.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/util/sasl.lua b/util/sasl.lua
index ab8b78a8..5d1b9f17 100644
--- a/util/sasl.lua
+++ b/util/sasl.lua
@@ -111,7 +111,7 @@ function method:select(mechanism)
return false;
end
- self.mech_i = mechanisms[self.mechanisms()[mechanism] and mechanism];
+ self.mech_i = mechanisms[self:mechanisms()[mechanism] and mechanism];
return (self.mech_i ~= nil);
end
diff --git a/util/sasl_cyrus.lua b/util/sasl_cyrus.lua
index 0676bcf7..f5bfcbe9 100644
--- a/util/sasl_cyrus.lua
+++ b/util/sasl_cyrus.lua
@@ -144,7 +144,7 @@ end
-- select a mechanism to use
function method:select(mechanism)
self.mechanism = mechanism;
- return self.mechanisms()[mechanism];
+ return self:mechanisms()[mechanism];
end
-- feed new messages to process into the library