From 14b609e6eebb0d462f5c25180817612612285831 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Thu, 3 Jun 2010 17:48:50 +0500 Subject: SASL: Minor cleanup. --- util/sasl/scram.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'util/sasl/scram.lua') diff --git a/util/sasl/scram.lua b/util/sasl/scram.lua index 1340423c..c366a152 100644 --- a/util/sasl/scram.lua +++ b/util/sasl/scram.lua @@ -93,10 +93,8 @@ local function validate_username(username) return username; end -local function hashprep( hashname ) - local hash = hashname:lower() - hash = hash:gsub("-", "_") - return hash +local function hashprep(hashname) + return hashname:lower():gsub("-", "_"); end function saltedPasswordSHA1(password, salt, iteration_count) -- cgit v1.2.3