aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2010-05-22 13:59:58 +0200
committerTobias Markmann <tm@ayena.de>2010-05-22 13:59:58 +0200
commit21490f6bf7da9ab1857dce5f649fe39415797d34 (patch)
tree1cac3df2f3fb2e92e62fec1c6f00ecd5ed0f53e2
parentc21b8a16358c03e996e769e3dad38ea6146c5ffb (diff)
downloadprosody-21490f6bf7da9ab1857dce5f649fe39415797d34.tar.gz
prosody-21490f6bf7da9ab1857dce5f649fe39415797d34.zip
util.sasl.scram: Fix in nonce check of client-final-message.
-rw-r--r--util/sasl/scram.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/sasl/scram.lua b/util/sasl/scram.lua
index 4c5df11a..7b9123ee 100644
--- a/util/sasl/scram.lua
+++ b/util/sasl/scram.lua
@@ -162,8 +162,8 @@ local function scram_gen(hash_name, H_f, HMAC_f)
return "failure", "malformed-request", "Missing an attribute(p, r or c) in SASL message.";
end
- if self.state.nonce ~= self.state.servernonce then
- return "failure", "malformed-request", "Wrong nonce in client-second-message.";
+ if self.state.nonce ~= self.state.clientnonce..self.state.servernonce then
+ return "failure", "malformed-request", "Wrong nonce in client-final-message.";
end
local SaltedPassword = self.state.salted_password;