Software /
code /
prosody
Diff
util/sasl.lua @ 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 |
parent | 1725:fb3137652ea6 |
child | 2079:5334723fa24d |
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"];