diff options
author | Waqas Hussain <waqas20@gmail.com> | 2010-08-03 18:20:29 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2010-08-03 18:20:29 +0500 |
commit | faa99714fccb2ef674038c90dff1114d06c99adf (patch) | |
tree | 12fd1c3bb6300642a42b15c12537153d3060aebf | |
parent | 2e77194fff273a732caea91d522abd70efa57204 (diff) | |
download | prosody-faa99714fccb2ef674038c90dff1114d06c99adf.tar.gz prosody-faa99714fccb2ef674038c90dff1114d06c99adf.zip |
util.sasl_cyrus: Make multi-step SASL mechanisms work correctly.
-rw-r--r-- | util/sasl_cyrus.lua | 3 |
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 |