mod_saslauth: Actively close cert file after reading
authorMatthew Wild <mwild1@gmail.com>
Tue, 24 Oct 2023 09:24:01 +0100
changeset 13290 8b3da19b0aea
parent 13289 63419a628c69
child 13291 1e2d65403867
mod_saslauth: Actively close cert file after reading Explicit > implicit
plugins/mod_saslauth.lua
--- 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