diff options
author | Waqas Hussain <waqas20@gmail.com> | 2009-11-13 04:24:17 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2009-11-13 04:24:17 +0500 |
commit | 715a48d5c3fb70138f9f41e8da93fa1d2a9f3766 (patch) | |
tree | c39538791abb9b155e545f5dddb00520bb0a00b3 /util/sasl.lua | |
parent | 316bc45e71aa55d276b11986115d5e40661bd607 (diff) | |
download | prosody-715a48d5c3fb70138f9f41e8da93fa1d2a9f3766.tar.gz prosody-715a48d5c3fb70138f9f41e8da93fa1d2a9f3766.zip |
util.sasl: Return proper error when client provides authzid.
Diffstat (limited to 'util/sasl.lua')
-rw-r--r-- | util/sasl.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/sasl.lua b/util/sasl.lua index d176fd85..9073a640 100644 --- a/util/sasl.lua +++ b/util/sasl.lua @@ -208,7 +208,7 @@ local function new_digest_md5(realm, credentials_handler) 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"]; |