Diff

plugins/mod_saslauth.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 5362:612467e263af
child 5776:bd0ff8ae98a8
child 6033:0d6f23049e95
line wrap: on
line diff
--- 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;