mod_s2s: Prevent unhandled stanza handler from complaining about stream features on aborted connections
authorKim Alvefur <zash@zash.se>
Fri, 29 Nov 2019 18:15:23 +0100
changeset 10463 7456eaa83b15
parent 10462 602dd1e2f399
child 10464 5ce6cbb5ce6a
mod_s2s: Prevent unhandled stanza handler from complaining about stream features on aborted connections I have no idea why I wrote return false in e5945fb5b71f
plugins/mod_s2s/mod_s2s.lua
--- a/plugins/mod_s2s/mod_s2s.lua	Thu Nov 28 18:57:17 2019 +0100
+++ b/plugins/mod_s2s/mod_s2s.lua	Fri Nov 29 18:15:23 2019 +0100
@@ -196,14 +196,14 @@
 					condition = "policy-violation",
 					text = "Encrypted server-to-server communication is required but was not offered",
 				}, nil, "Could not establish encrypted connection to remote server");
-			return false;
+			return true;
 		elseif not session.dialback_verifying then
 			session.log("warn", "No SASL EXTERNAL offer and Dialback doesn't seem to be enabled, giving up");
 			session:close({
 					condition = "unsupported-feature",
 					text = "No viable authentication method offered",
 				}, nil, "No viable authentication method offered by remote server");
-			return false;
+			return true;
 		end
 	end, -1);
 end