aboutsummaryrefslogtreecommitdiff
path: root/xmpp-vala/src
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2019-08-26 16:27:47 +0200
committerfiaxh <git@lightrise.org>2019-08-26 16:37:43 +0200
commitff6caf241c4d57d3ef124a8b7c3144a09f320ea0 (patch)
tree5d269dd3433136f268056f02416d68a8837bdcd3 /xmpp-vala/src
parenta99c3ff16d3b10209b19a43fc4e810351aeccd61 (diff)
downloaddino-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')
-rw-r--r--xmpp-vala/src/module/iq/module.vala3
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);
}
}