From 5a4f819d38ea47ec1d7b32086894cce99b82a275 Mon Sep 17 00:00:00 2001 From: Marco Cirillo Date: Mon, 2 Jul 2018 19:41:28 +0200 Subject: [PATCH] mod_dialback: reflect previous changes. We shall not rely on cert_identity_status as it might not be set anymore now --- plugins/mod_dialback.lua | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/plugins/mod_dialback.lua b/plugins/mod_dialback.lua index c3e368b2..a5339703 100644 --- a/plugins/mod_dialback.lua +++ b/plugins/mod_dialback.lua @@ -197,11 +197,7 @@ module:hook("stanza/"..xmlns_db..":result", function(event) -- Implement Dialback without Dialback (See XEP-0344) shortcircuiting local shortcircuit; - if origin.cert_identity_status == "valid" and from == origin.from_host then - shortcircuit = true; - elseif from ~= origin.from_host and verify_identity(origin, from) then - shortcircuit = true; - end + if verify_identity(origin, from) then shortcircuit = true; end if shortcircuit then origin.log("debug", "shortcircuiting %s dialback request, as it presented a valid certificate", from);