Changeset

13285:63419a628c69

mod_saslauth: Fix read format string (thanks tmolitor)
author Matthew Wild <mwild1@gmail.com>
date Tue, 24 Oct 2023 09:23:31 +0100
parents 13284:ffd3dadf6247
children 13286:8b3da19b0aea
files plugins/mod_saslauth.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_saslauth.lua	Sun Oct 22 18:58:02 2023 +0200
+++ b/plugins/mod_saslauth.lua	Tue Oct 24 09:23:31 2023 +0100
@@ -274,7 +274,7 @@
 		if not certfile then return end
 		local f = io.open(certfile);
 		if not f then return end
-		local certdata = f:read("*");
+		local certdata = f:read("*a");
 		cert = ssl.loadcertificate(certdata);
 	end