From ff6caf241c4d57d3ef124a8b7c3144a09f320ea0 Mon Sep 17 00:00:00 2001 From: fiaxh Date: Mon, 26 Aug 2019 16:27:47 +0200 Subject: Add missing 'to' attribute when sending service-unavailable for an unknown IG get/set NS fixes #604 --- xmpp-vala/src/module/iq/module.vala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } } -- cgit v1.2.3-70-g09d2