# HG changeset patch # User Kim Alvefur # Date 1409082608 -7200 # Node ID c74670b3be5309517695564a80f0dd9f8298e0a7 # Parent 55fda5deb5d5dfb4bb3f0a63356f0e62b90c1e87 mod_s2s: Mark stream as opened earlier for outgoing connections, fixes double stream headers on policy failures diff -r 55fda5deb5d5 -r c74670b3be53 plugins/mod_s2s/mod_s2s.lua --- a/plugins/mod_s2s/mod_s2s.lua Tue Aug 26 12:19:27 2014 +0200 +++ b/plugins/mod_s2s/mod_s2s.lua Tue Aug 26 21:50:08 2014 +0200 @@ -362,7 +362,9 @@ log("debug", "Sending stream features: %s", tostring(features)); send(features); end + session.notopen = nil; elseif session.direction == "outgoing" then + session.notopen = nil; -- If we are just using the connection for verifying dialback keys, we won't try and auth it if not attr.id then error("stream response did not give us a streamid!!!"); end session.streamid = attr.id; @@ -396,7 +398,6 @@ end end end - session.notopen = nil; end function stream_callbacks.streamclosed(session)