# HG changeset patch # User Tobias Markmann # Date 1274715853 -7200 # Node ID 95ddd75ed3c5e20a15cfcc45b22cf10ce5c7ab35 # Parent 4c35ef27d868a1ab16002ffa6bc49784a045de39 util.sasl.scram: Fixing logic error in argument checking. diff -r 4c35ef27d868 -r 95ddd75ed3c5 util/sasl/scram.lua --- a/util/sasl/scram.lua Sun May 23 23:05:01 2010 +0100 +++ b/util/sasl/scram.lua Mon May 24 17:44:13 2010 +0200 @@ -94,7 +94,7 @@ 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