aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2010-05-24 17:44:13 +0200
committerTobias Markmann <tm@ayena.de>2010-05-24 17:44:13 +0200
commit5e08b2f64d0b9b4ed9b234f96a0138c0de3da40b (patch)
tree3ba6d294204def13ec5e9bd1c0efba118e547dca
parent9e416aeb5f79cf4dc78d93dfac59d98df5d32c33 (diff)
downloadprosody-5e08b2f64d0b9b4ed9b234f96a0138c0de3da40b.tar.gz
prosody-5e08b2f64d0b9b4ed9b234f96a0138c0de3da40b.zip
util.sasl.scram: Fixing logic error in argument checking.
-rw-r--r--util/sasl/scram.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/sasl/scram.lua b/util/sasl/scram.lua
index 6040c402..48536dff 100644
--- a/util/sasl/scram.lua
+++ b/util/sasl/scram.lua
@@ -94,7 +94,7 @@ end
function saltedPasswordSHA1(password, salt, iteration_count)
local salted_password
- if type(password) ~= "string" and type(salt) ~= "string" and type(iteration_count) ~= "number" then
+ if type(password) ~= "string" or type(salt) ~= "string" or type(iteration_count) ~= "number" then
return false, "inappropriate argument types"
end
if iteration_count < 4096 then