diff options
author | Kim Alvefur <zash@zash.se> | 2019-10-06 16:07:26 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-10-06 16:07:26 +0200 |
commit | 2da7971cb5dae639818e67ba68d37946d948b787 (patch) | |
tree | 665e486c7cfd94624f37ead1a1bd95191ad90976 /util/sasl/scram.lua | |
parent | 153ebfe5d719d50312629bb9475bde5500f1da6e (diff) | |
download | prosody-2da7971cb5dae639818e67ba68d37946d948b787.tar.gz prosody-2da7971cb5dae639818e67ba68d37946d948b787.zip |
util.sasl.scram: Avoid implicit coersion of number to string
Lua can be compiled without coercion, which would cause an error here.
Diffstat (limited to 'util/sasl/scram.lua')
-rw-r--r-- | util/sasl/scram.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/sasl/scram.lua b/util/sasl/scram.lua index 9bf1737b..1d1590e8 100644 --- a/util/sasl/scram.lua +++ b/util/sasl/scram.lua @@ -190,7 +190,7 @@ local function scram_gen(hash_name, H_f, HMAC_f, get_auth_db) end local nonce = clientnonce .. generate_uuid(); - local server_first_message = "r="..nonce..",s="..base64.encode(salt)..",i="..iteration_count; + local server_first_message = ("r=%s,s=%s,i=%d"):format(nonce, base64.encode(salt), iteration_count); self.state = { gs2_header = gs2_header; gs2_cbind_name = gs2_cbind_name; |