diff options
author | Kim Alvefur <zash@zash.se> | 2014-02-12 19:26:54 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2014-02-12 19:26:54 +0100 |
commit | 08f04b1419c2c8878d3836d11cd7af806a083898 (patch) | |
tree | 6eb49f8bddde74f4f7a621d0fb2770d60c093b4f /plugins/mod_saslauth.lua | |
parent | db97ec41b600653e046c0d6ee7c2625105a5a761 (diff) | |
parent | a0ece01720887a029783f813da186d624aa41ba8 (diff) | |
download | prosody-08f04b1419c2c8878d3836d11cd7af806a083898.tar.gz prosody-08f04b1419c2c8878d3836d11cd7af806a083898.zip |
Merge 0.10 -> trunk
Diffstat (limited to 'plugins/mod_saslauth.lua')
-rw-r--r-- | plugins/mod_saslauth.lua | 2 |
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); |