Diff

util/sasl/plain.lua @ 2314:c2e1bde4d84d

Redo merge with Waqas' PBKDF2 optimizations.
author Tobias Markmann <tm@ayena.de>
date Thu, 03 Dec 2009 21:57:47 +0100
parent 2290:ef7027a0f0c9
child 2991:0fa3a7c885bd
line wrap: on
line diff
--- a/util/sasl/plain.lua	Thu Dec 03 19:18:18 2009 +0000
+++ b/util/sasl/plain.lua	Thu Dec 03 21:57:47 2009 +0100
@@ -24,7 +24,7 @@
 		return "failure", "malformed-request";
 	end
 
-	local authorization, authentication, password = s_match(message, "^([^%z]+)%z([^%z]+)%z([^%z]+)");
+	local authorization, authentication, password = s_match(message, "^([^%z]*)%z([^%z]+)%z([^%z]+)");
 
 	if not authorization then
 		return "failure", "malformed-request";