aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-12-18 13:58:33 +0100
committerKim Alvefur <zash@zash.se>2021-12-18 13:58:33 +0100
commit549ee95de5f22a323e67cdfc98c62886df153c85 (patch)
tree84ffc1e680ddbe71e22419afcd97ad678cbcf633 /plugins
parenteb65a8b39a9cbc1284d4b0ec44e76dc7ea46c0d5 (diff)
downloadprosody-549ee95de5f22a323e67cdfc98c62886df153c85.tar.gz
prosody-549ee95de5f22a323e67cdfc98c62886df153c85.zip
mod_smacks: Fix traceback when bouncing unacked stanzas
Errors sent from handle_unacked_stanzas() should usually not be sent to the session itself, but if one is, it should not be queued.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_smacks.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_smacks.lua b/plugins/mod_smacks.lua
index ce757707..c868bf70 100644
--- a/plugins/mod_smacks.lua
+++ b/plugins/mod_smacks.lua
@@ -150,6 +150,7 @@ local function outgoing_stanza_filter(stanza, session)
-- However, when using mod_smacks with mod_websocket, then mod_websocket's
-- stanzas/out filter can get called before this one and adds the xmlns.
if session.resending_unacked then return stanza end
+ if not session.smacks then return stanza end
local is_stanza = st.is_stanza(stanza) and
(not stanza.attr.xmlns or stanza.attr.xmlns == 'jabber:client')
and not stanza.name:find":";