aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2022-09-03 21:19:00 +0100
committerMatthew Wild <mwild1@gmail.com>2022-09-03 21:19:00 +0100
commit5eef82fdcfe3163b1d23b04058dc41b7848b7976 (patch)
treea977afde2c843d5dd70dfe8dcee08b5bb7325cb6
parent928fe5d0598c7d2348497a508f11b97a757543f5 (diff)
downloadprosody-5eef82fdcfe3163b1d23b04058dc41b7848b7976.tar.gz
prosody-5eef82fdcfe3163b1d23b04058dc41b7848b7976.zip
mod_saslauth: Only announce bind feature if no resource yet bound
It's now possible to bind during SASL2 negotiation.
-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 c7228b10..2552a253 100644
--- a/plugins/mod_saslauth.lua
+++ b/plugins/mod_saslauth.lua
@@ -352,7 +352,7 @@ module:hook("stream-features", function(event)
authmod, available_disabled);
end
- else
+ elseif not session.full_jid then
features:tag("bind", bind_attr):tag("required"):up():up();
features:tag("session", xmpp_session_attr):tag("optional"):up():up();
end