util.sasl.scram: Fix remaining - in profile name

Mon, 24 May 2010 19:44:27 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Mon, 24 May 2010 19:44:27 +0100
changeset 3123
0f21abc745ef
parent 3122
579f17b9f948
child 3124
21e60658767d
child 3125
f2d1079a758d

util.sasl.scram: Fix remaining - in profile name

util/sasl/scram.lua file | annotate | diff | comparison | revisions
--- a/util/sasl/scram.lua	Mon May 24 18:15:16 2010 +0200
+++ b/util/sasl/scram.lua	Mon May 24 19:44:27 2010 +0100
@@ -164,7 +164,7 @@
 					return "failure", "temporary-auth-failure";
 				end
 			elseif self.profile["scram_"..hashprep(hash_name)] then
-				local salted_password, iteration_count, salt, state = self.profile["scram-"..hash_name](self.state.name, self.realm);
+				local salted_password, iteration_count, salt, state = self.profile["scram_"..hashprep(hash_name)](self.state.name, self.realm);
 				if state == nil then return "failure", "not-authorized"
 				elseif state == false then return "failure", "account-disabled" end
 				

mercurial