# HG changeset patch # User Waqas Hussain # Date 1258068257 -18000 # Node ID a5f154548154b2dbe047c9c036db123e4ac0920b # Parent e33658f6052c18378dda82a96f191d8a16ce62a7 util.sasl: Return proper error when client provides authzid. diff -r e33658f6052c -r a5f154548154 util/sasl.lua --- 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"];