aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2020-11-23 21:52:46 +0100
committerKim Alvefur <zash@zash.se>2020-11-23 21:52:46 +0100
commit15b64ea4ff015baaac85cd2438cae3ab0a42cb19 (patch)
tree6e4d0b7c87c7c0dc5e1dcfeef932789ed3afdac6 /plugins
parentb62216fab3d49402161f55e12791e716292245c6 (diff)
downloadprosody-15b64ea4ff015baaac85cd2438cae3ab0a42cb19.tar.gz
prosody-15b64ea4ff015baaac85cd2438cae3ab0a42cb19.zip
mod_saslauth: Only advertise channel binding if a finished message is available
In some cases this method returns nothing, unclear why.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_saslauth.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_saslauth.lua b/plugins/mod_saslauth.lua
index 333640fc..e8bca7c3 100644
--- a/plugins/mod_saslauth.lua
+++ b/plugins/mod_saslauth.lua
@@ -255,7 +255,7 @@ module:hook("stream-features", function(event)
local info = socket.info and socket:info();
if info.protocol == "TLSv1.3" then
log("debug", "Channel binding 'tls-unique' undefined in context of TLS 1.3");
- elseif socket.getpeerfinished then
+ elseif socket.getpeerfinished and socket:getpeerfinished() then
sasl_handler:add_cb_handler("tls-unique", tls_unique);
end
sasl_handler["userdata"] = {