diff options
author | Waqas Hussain <waqas20@gmail.com> | 2009-12-01 01:41:31 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2009-12-01 01:41:31 +0500 |
commit | 8ecc1e8ca280c5c715dcc928a73a425e2e0fd432 (patch) | |
tree | 8c9074cb06e59fbc5fad4a94edc685b636db16f7 /util/sasl/scram.lua | |
parent | 2100104326791787aafc14012c731e54ed4c35fa (diff) | |
download | prosody-8ecc1e8ca280c5c715dcc928a73a425e2e0fd432.tar.gz prosody-8ecc1e8ca280c5c715dcc928a73a425e2e0fd432.zip |
util.sasl.scram: Fixed a variable redeclaration.
Diffstat (limited to 'util/sasl/scram.lua')
-rw-r--r-- | util/sasl/scram.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/sasl/scram.lua b/util/sasl/scram.lua index be82c60e..e0246c95 100644 --- a/util/sasl/scram.lua +++ b/util/sasl/scram.lua @@ -116,9 +116,9 @@ local function scram_sha_1(self, message) return "failure", "malformed-request", "Missing an attribute(p, r or c) in SASL message."; end - local password; + local password, state; if self.profile.plain then - local password, state = self.profile.plain(self.state.name, self.realm) + password, state = self.profile.plain(self.state.name, self.realm) if state == nil then return "failure", "not-authorized" elseif state == false then return "failure", "account-disabled" end password = saslprep(password); |