Changeset

13286:8b3da19b0aea

mod_saslauth: Actively close cert file after reading Explicit > implicit
author Matthew Wild <mwild1@gmail.com>
date Tue, 24 Oct 2023 09:24:01 +0100
parents 13285:63419a628c69
children 13287:1e2d65403867
files plugins/mod_saslauth.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_saslauth.lua	Tue Oct 24 09:23:31 2023 +0100
+++ b/plugins/mod_saslauth.lua	Tue Oct 24 09:24:01 2023 +0100
@@ -275,6 +275,7 @@
 		local f = io.open(certfile);
 		if not f then return end
 		local certdata = f:read("*a");
+		f:close();
 		cert = ssl.loadcertificate(certdata);
 	end