Software /
code /
prosody
Changeset
5535:0df0afc041d7
mod_saslauth, mod_compression: Fix some cases where open_stream() was not being passed to/from (see df3c78221f26 and issue #338)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 29 Apr 2013 10:43:44 +0100 |
parents | 5533:df3c78221f26 |
children | 5536:abb6c6e3d6dc 5539:0ae7ed378405 |
files | plugins/mod_compression.lua plugins/mod_saslauth.lua |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_compression.lua Mon Apr 29 00:33:39 2013 +0100 +++ b/plugins/mod_compression.lua Mon Apr 29 10:43:44 2013 +0100 @@ -141,7 +141,7 @@ -- setup decompression for session.data setup_decompression(session, inflate_stream); session:reset_stream(); - session:open_stream(); + session:open_stream(session.from_host, session.to_host); session.compressed = true; return true; end
--- a/plugins/mod_saslauth.lua Mon Apr 29 00:33:39 2013 +0100 +++ b/plugins/mod_saslauth.lua Mon Apr 29 10:43:44 2013 +0100 @@ -87,7 +87,7 @@ module:log("debug", "SASL EXTERNAL with %s succeeded", session.to_host); session.external_auth = "succeeded" session:reset_stream(); - session:open_stream(); + session:open_stream(session.from_host, session.to_host); module:fire_event("s2s-authenticated", { session = session, host = session.to_host }); return true;