Diff

plugins/mod_compression.lua @ 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
parent 5351:901ed253bbf7
child 5776:bd0ff8ae98a8
child 6040:b3b1c9da38fb
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