Diff

plugins/mod_saslauth.lua @ 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
parent 13285:63419a628c69
child 13288:9a371b046e58
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