From 36483b12ca405c2fab734a2989a63841f99312fb Mon Sep 17 00:00:00 2001
From: Kim Alvefur <zash@zash.se>
Date: Fri, 29 Nov 2019 18:15:23 +0100
Subject: 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 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/plugins/mod_s2s/mod_s2s.lua b/plugins/mod_s2s/mod_s2s.lua
index 0fd022cd..7cd90a84 100644
--- a/plugins/mod_s2s/mod_s2s.lua
+++ b/plugins/mod_s2s/mod_s2s.lua
@@ -196,14 +196,14 @@ function module.add_host(module)
 					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
-- 
cgit v1.2.3