# HG changeset patch # User Kim Alvefur # Date 1364234895 -3600 # Node ID f833d2188c16f7ce54379cd79a35c4a11b4fbb0b # Parent 1130887e0d41fa6e2da6383dae2344241493971e mod_s2s: Reset secure flag on new connection attempt diff -r 1130887e0d41 -r f833d2188c16 plugins/mod_s2s/s2sout.lib.lua --- a/plugins/mod_s2s/s2sout.lib.lua Mon Mar 25 08:18:49 2013 +0100 +++ b/plugins/mod_s2s/s2sout.lib.lua Mon Mar 25 19:08:15 2013 +0100 @@ -271,6 +271,10 @@ local from_host, to_host = host_session.from_host, host_session.to_host; + -- Reset secure flag in case this is another + -- connection attempt after a failed STARTTLS + host_session.secure = nil; + local conn, handler; if connect_host.proto == "IPv4" then conn, handler = socket.tcp();