aboutsummaryrefslogtreecommitdiffstats
path: root/util/sasl.lua
diff options
context:
space:
mode:
Diffstat (limited to 'util/sasl.lua')
-rw-r--r--util/sasl.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/util/sasl.lua b/util/sasl.lua
index 6b14c1b1..36f43ec2 100644
--- a/util/sasl.lua
+++ b/util/sasl.lua
@@ -102,6 +102,10 @@ end
-- select a mechanism to use
function method:select(mechanism)
+ if self.mech_i then
+ return false;
+ end
+
self.mech_i = mechanisms[mechanism]
if self.mech_i == nil then
return false;