Add missing 'to' attribute when sending service-unavailable for an unknown IG get/set NS

fixes #604
This commit is contained in:
fiaxh 2019-08-26 16:27:47 +02:00
parent a99c3ff16d
commit ff6caf241c

View file

@ -67,7 +67,8 @@ namespace Xmpp.Iq {
} }
} }
} else { } 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); send_iq(stream, unavailable_error);
} }
} }