From b029c17c914638db0fa8f395b7394f5c78595cbd Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Tue, 24 Oct 2023 09:24:01 +0100 Subject: mod_saslauth: Actively close cert file after reading Explicit > implicit --- plugins/mod_saslauth.lua | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.3