mod_net_dovecotauth: Make variable local [luacheck]
authorKim Alvefur <zash@zash.se>
Sun, 22 Jan 2017 04:43:55 +0100
changeset 2462 20f9d7150777
parent 2461 17539a5d73f4
child 2463 8e686bf63441
mod_net_dovecotauth: Make variable local [luacheck]
mod_net_dovecotauth/mod_net_dovecotauth.lua
--- a/mod_net_dovecotauth/mod_net_dovecotauth.lua	Sun Jan 22 04:42:55 2017 +0100
+++ b/mod_net_dovecotauth/mod_net_dovecotauth.lua	Sun Jan 22 04:43:55 2017 +0100
@@ -149,7 +149,7 @@
 local listener = {}
 
 function listener.onconnect(conn)
-	s = new_session(conn);
+	local s = new_session(conn);
 	sessions[conn] = s;
 	local g_sasl = new_sasl(default_vhost, s);
 	s.g_sasl = g_sasl;