aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--util/sasl_cyrus.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/sasl_cyrus.lua b/util/sasl_cyrus.lua
index ef1bf3d0..2e5b96c0 100644
--- a/util/sasl_cyrus.lua
+++ b/util/sasl_cyrus.lua
@@ -133,8 +133,9 @@ function method:process(message)
local err;
local data;
- if self.mechanism then
+ if not self.first_step_done then
err, data = cyrussasl.server_start(self.cyrus, self.mechanism, message or "")
+ self.first_step_done = true;
else
err, data = cyrussasl.server_step(self.cyrus, message or "")
end