# HG changeset patch # User Kim Alvefur # Date 1606164766 -3600 # Node ID 992c4498a1e33d18a37efbee0502b89f53138f55 # Parent 1bfd238e05ad0c0c9bd15bb036ba7c9f4d3803d0 mod_saslauth: Only advertise channel binding if a finished message is available In some cases this method returns nothing, unclear why. diff -r 1bfd238e05ad -r 992c4498a1e3 plugins/mod_saslauth.lua --- a/plugins/mod_saslauth.lua Mon Nov 23 21:42:52 2020 +0100 +++ b/plugins/mod_saslauth.lua Mon Nov 23 21:52:46 2020 +0100 @@ -255,7 +255,7 @@ 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"] = {