aboutsummaryrefslogtreecommitdiffstats
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
commitbc3187152988220b1b213a5cfd4b2b570667e735 (patch)
tree6e4d0b7c87c7c0dc5e1dcfeef932789ed3afdac6
parentcc0e5dc34b53f139f9149466ab68ee731915f8c7 (diff)
downloadprosody-bc3187152988220b1b213a5cfd4b2b570667e735.tar.gz
prosody-bc3187152988220b1b213a5cfd4b2b570667e735.zip
mod_saslauth: Only advertise channel binding if a finished message is available
In some cases this method returns nothing, unclear why.
-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"] = {