diff options
author | Kim Alvefur <zash@zash.se> | 2025-02-22 21:49:59 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2025-02-22 21:49:59 +0100 |
commit | 70ee43995c0e68306c8cdf867fc871edf637e82c (patch) | |
tree | 08af9e145183053e338e954390d8b3854e6ec30f /plugins/mod_component.lua | |
parent | 4537e07daa1c6f663375e8ec0b2ae44e84ecd4de (diff) | |
parent | e52cc0126df37947718c18b590b682943ec6da16 (diff) | |
download | prosody-70ee43995c0e68306c8cdf867fc871edf637e82c.tar.gz prosody-70ee43995c0e68306c8cdf867fc871edf637e82c.zip |
Merge 13.0->trunk
Diffstat (limited to 'plugins/mod_component.lua')
-rw-r--r-- | plugins/mod_component.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/mod_component.lua b/plugins/mod_component.lua index 86ceb980..51c73235 100644 --- a/plugins/mod_component.lua +++ b/plugins/mod_component.lua @@ -239,7 +239,9 @@ function stream_callbacks.handlestanza(session, stanza) end if not stanza.attr.to then session.log("warn", "Rejecting stanza with no 'to' address"); - session.send(st.error_reply(stanza, "modify", "bad-request", "Components MUST specify a 'to' address on stanzas")); + if stanza.attr.type ~= "error" and stanza.attr.type ~= "result" then + session.send(st.error_reply(stanza, "modify", "bad-request", "Components MUST specify a 'to' address on stanzas")); + end return; end end |