diff options
author | Matthew Wild <mwild1@gmail.com> | 2023-10-24 09:24:01 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2023-10-24 09:24:01 +0100 |
commit | b029c17c914638db0fa8f395b7394f5c78595cbd (patch) | |
tree | 0efabbc472735c2cd156bca2a2342c51db736492 /plugins/mod_saslauth.lua | |
parent | a4c91c76463b68f4fa6871d2a5864a37c68e04f2 (diff) | |
download | prosody-b029c17c914638db0fa8f395b7394f5c78595cbd.tar.gz prosody-b029c17c914638db0fa8f395b7394f5c78595cbd.zip |
mod_saslauth: Actively close cert file after reading
Explicit > implicit
Diffstat (limited to 'plugins/mod_saslauth.lua')
-rw-r--r-- | plugins/mod_saslauth.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_saslauth.lua b/plugins/mod_saslauth.lua index bd5de928..75bd28ae 100644 --- a/plugins/mod_saslauth.lua +++ b/plugins/mod_saslauth.lua @@ -275,6 +275,7 @@ local function tls_server_end_point(self) local f = io.open(certfile); if not f then return end local certdata = f:read("*a"); + f:close(); cert = ssl.loadcertificate(certdata); end |