Add missing 'to' attribute when sending service-unavailable for an unknown IG get/set NS
fixes #604
This commit is contained in:
parent
a99c3ff16d
commit
ff6caf241c
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue