aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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