aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2023-03-16 13:52:22 +0100
committerKim Alvefur <zash@zash.se>2023-03-16 13:52:22 +0100
commitb156f013c4c68996981dc876d5edcf140e33eb00 (patch)
tree8ec045841696a12cd4d2095306cdfb752faa6f80
parent2331fc8b65377e722294b02bcf10d551336e6f6c (diff)
downloadprosody-b156f013c4c68996981dc876d5edcf140e33eb00.tar.gz
prosody-b156f013c4c68996981dc876d5edcf140e33eb00.zip
util.sasl.scram: Fix off-by-one indentation
-rw-r--r--util/sasl/scram.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/sasl/scram.lua b/util/sasl/scram.lua
index 4606d1fd..3a751ebc 100644
--- a/util/sasl/scram.lua
+++ b/util/sasl/scram.lua
@@ -112,8 +112,8 @@ local function scram_gen(hash_name, H_f, HMAC_f, get_auth_db, expect_cb)
if support_channel_binding and gs2_cbind_flag == "y" then
-- "y" -> client does support channel binding
-- but thinks the server does not.
- return "failure", "malformed-request";
- end
+ return "failure", "malformed-request";
+ end
if gs2_cbind_flag == "n" then
-- "n" -> client doesn't support channel binding.