util.sasl: Fix 2 global sets (one a tpyo)
authorMatthew Wild <mwild1@gmail.com>
Thu, 20 Aug 2009 04:15:41 +0100
changeset 1724 7682a34c13d0
parent 1723 2145daff1a65
child 1725 fb3137652ea6
child 1726 85518cb866dd
util.sasl: Fix 2 global sets (one a tpyo)
util/sasl.lua
--- a/util/sasl.lua	Wed Aug 19 22:16:27 2009 +0200
+++ b/util/sasl.lua	Thu Aug 20 04:15:41 2009 +0100
@@ -52,7 +52,7 @@
 		local claimed_password = ""
 		if password_encoding == nil then claimed_password = password
 		else claimed_password = password_encoding(password) end
-		caimed_password = saslprep(claimed_password);
+		claimed_password = saslprep(claimed_password);
 		
 		self.username = authentication
 		if claimed_password == correct_password then
@@ -133,7 +133,7 @@
 		return t_concat(p);
 	end
 	local function parse(data)
-		message = {}
+		local message = {}
 		for k, v in gmatch(data, [[([%w%-]+)="?([^",]*)"?,?]]) do -- FIXME The hacky regex makes me shudder
 			message[k] = v;
 		end