aboutsummaryrefslogtreecommitdiffstats
path: root/util/sasl/scram.lua
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
commit9449a9f03656354a04bd6d08eeb367ca9bf717ef (patch)
treec70e2fceb896dd3253b98708a3b2e2c7f44deb21 /util/sasl/scram.lua
parent84b7c3f97831c15d262663f6bc58b552adb11398 (diff)
downloadprosody-9449a9f03656354a04bd6d08eeb367ca9bf717ef.tar.gz
prosody-9449a9f03656354a04bd6d08eeb367ca9bf717ef.zip
util.sasl.scram: Fixing logic error in argument checking.
Diffstat (limited to 'util/sasl/scram.lua')
-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