aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-11-13 04:24:17 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-11-13 04:24:17 +0500
commit715a48d5c3fb70138f9f41e8da93fa1d2a9f3766 (patch)
treec39538791abb9b155e545f5dddb00520bb0a00b3
parentChanged separator between attribute names and prefixes from '|' to '\1' (optimization and cleanup). (diff)
downloadprosody-715a48d5c3fb70138f9f41e8da93fa1d2a9f3766.tar.xz
prosody-715a48d5c3fb70138f9f41e8da93fa1d2a9f3766.zip
util.sasl: Return proper error when client provides authzid.
-rw-r--r--util/sasl.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/sasl.lua b/util/sasl.lua
index d176fd853..9073a6402 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"];