diff options
author | Matthew Wild <mwild1@gmail.com> | 2023-10-24 09:23:31 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2023-10-24 09:23:31 +0100 |
commit | a4c91c76463b68f4fa6871d2a5864a37c68e04f2 (patch) | |
tree | b0e366c4a8f000834ef31e4924f758a26f7b57c4 /plugins | |
parent | 7b882e440590cd8a93b34ee00809ab742fc0c60d (diff) | |
download | prosody-a4c91c76463b68f4fa6871d2a5864a37c68e04f2.tar.gz prosody-a4c91c76463b68f4fa6871d2a5864a37c68e04f2.zip |
mod_saslauth: Fix read format string (thanks tmolitor)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_saslauth.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_saslauth.lua b/plugins/mod_saslauth.lua index 6aeb0e6a..bd5de928 100644 --- a/plugins/mod_saslauth.lua +++ b/plugins/mod_saslauth.lua @@ -274,7 +274,7 @@ local function tls_server_end_point(self) if not certfile then return end local f = io.open(certfile); if not f then return end - local certdata = f:read("*"); + local certdata = f:read("*a"); cert = ssl.loadcertificate(certdata); end |