Changeset

2266:6e662e4f7ab2

util.sasl.scram: Fixed a variable redeclaration.
author Waqas Hussain <waqas20@gmail.com>
date Tue, 01 Dec 2009 01:41:31 +0500
parents 2265:7fe644057dc2
children 2267:0a675bb365a9
files util/sasl/scram.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/util/sasl/scram.lua	Mon Nov 30 20:53:25 2009 +0100
+++ b/util/sasl/scram.lua	Tue Dec 01 01:41:31 2009 +0500
@@ -116,9 +116,9 @@
 			return "failure", "malformed-request", "Missing an attribute(p, r or c) in SASL message.";
 		end
 		
-		local password;
+		local password, state;
 		if self.profile.plain then
-			local password, state = self.profile.plain(self.state.name, self.realm)
+			password, state = self.profile.plain(self.state.name, self.realm)
 			if state == nil then return "failure", "not-authorized"
 			elseif state == false then return "failure", "account-disabled" end
 			password = saslprep(password);