aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2023-10-24 09:24:01 +0100
committerMatthew Wild <mwild1@gmail.com>2023-10-24 09:24:01 +0100
commitb029c17c914638db0fa8f395b7394f5c78595cbd (patch)
tree0efabbc472735c2cd156bca2a2342c51db736492 /plugins
parenta4c91c76463b68f4fa6871d2a5864a37c68e04f2 (diff)
downloadprosody-b029c17c914638db0fa8f395b7394f5c78595cbd.tar.gz
prosody-b029c17c914638db0fa8f395b7394f5c78595cbd.zip
mod_saslauth: Actively close cert file after reading
Explicit > implicit
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_saslauth.lua1
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