diff options
author | fiaxh <git@lightrise.org> | 2019-08-26 16:27:47 +0200 |
---|---|---|
committer | fiaxh <git@lightrise.org> | 2019-08-26 16:37:43 +0200 |
commit | ff6caf241c4d57d3ef124a8b7c3144a09f320ea0 (patch) | |
tree | 5d269dd3433136f268056f02416d68a8837bdcd3 /xmpp-vala/src/module/iq | |
parent | a99c3ff16d3b10209b19a43fc4e810351aeccd61 (diff) | |
download | dino-ff6caf241c4d57d3ef124a8b7c3144a09f320ea0.tar.gz dino-ff6caf241c4d57d3ef124a8b7c3144a09f320ea0.zip |
Add missing 'to' attribute when sending service-unavailable for an unknown IG get/set NS
fixes #604
Diffstat (limited to 'xmpp-vala/src/module/iq')
-rw-r--r-- | xmpp-vala/src/module/iq/module.vala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xmpp-vala/src/module/iq/module.vala b/xmpp-vala/src/module/iq/module.vala index f73f5459..f5cb6acf 100644 --- a/xmpp-vala/src/module/iq/module.vala +++ b/xmpp-vala/src/module/iq/module.vala @@ -67,7 +67,8 @@ namespace Xmpp.Iq { } } } else { - Iq.Stanza unavailable_error = new Iq.Stanza.error(iq, new ErrorStanza.service_unavailable()); + // Send error if we don't handle the NS of the IQ get/set payload (RFC6120 10.3.3 (2)) + Iq.Stanza unavailable_error = new Iq.Stanza.error(iq, new ErrorStanza.service_unavailable()) { to=iq.from }; send_iq(stream, unavailable_error); } } |