Changeset

2078:a5f154548154

util.sasl: Return proper error when client provides authzid.
author Waqas Hussain <waqas20@gmail.com>
date Fri, 13 Nov 2009 04:24:17 +0500
parents 2077:e33658f6052c
children 2079:5334723fa24d
files util/sasl.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/util/sasl.lua	Thu Nov 12 13:42:44 2009 +0500
+++ b/util/sasl.lua	Fri Nov 13 04:24:17 2009 +0500
@@ -208,7 +208,7 @@
 					log("warn", "Client is violating XMPP RFC. See section 6.1 of RFC 3920.");
 					A1 = Y..":"..response["nonce"]..":"..response["cnonce"]..":"..response.authzid;
 				else
-					A1 = "?";
+					return "failure", "invalid-authzid";
 				end
 			else
 				A1 = Y..":"..response["nonce"]..":"..response["cnonce"];