aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_saslauth.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2014-02-12 19:26:54 +0100
committerKim Alvefur <zash@zash.se>2014-02-12 19:26:54 +0100
commit741b175347e86a18273060fc884b1d5c8899cc5e (patch)
tree6eb49f8bddde74f4f7a621d0fb2770d60c093b4f /plugins/mod_saslauth.lua
parent6d743a0544280a231a08d8ab6aeedf9d57090c2a (diff)
parenta8479fce152379d3e095aa0204aa022c5b47d4e0 (diff)
downloadprosody-741b175347e86a18273060fc884b1d5c8899cc5e.tar.gz
prosody-741b175347e86a18273060fc884b1d5c8899cc5e.zip
Merge 0.10 -> trunk
Diffstat (limited to 'plugins/mod_saslauth.lua')
-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 4513c511..94c060b3 100644
--- a/plugins/mod_saslauth.lua
+++ b/plugins/mod_saslauth.lua
@@ -245,7 +245,7 @@ module:hook("stream-features", function(event)
if origin.encrypted then
-- check wether LuaSec has the nifty binding to the function needed for tls-unique
-- FIXME: would be nice to have this check only once and not for every socket
- if origin.conn:socket().getpeerfinished then
+ if origin.conn:socket().getpeerfinished and origin.sasl_handler.add_cb_handler then
origin.sasl_handler:add_cb_handler("tls-unique", function(self)
return self.userdata:getpeerfinished();
end);