Commit eb0a0dd4 authored by dwd's avatar dwd

Merge pull request #37 from sco0ter/of819

OF-819 IQs of type error get falsely routed to IQ.createResult() which r...
parents 1252f2db d49f98b4
......@@ -120,8 +120,7 @@ public class IQRouter extends BasicModule {
"urn:ietf:params:xml:ns:xmpp-bind"
.equals(packet.getChildElement().getNamespaceURI())))) {
handle(packet);
}
else {
} else if (packet.getType() == IQ.Type.get || packet.getType() == IQ.Type.set) {
IQ reply = IQ.createResultIQ(packet);
reply.setChildElement(packet.getChildElement().createCopy());
reply.setError(PacketError.Condition.not_authorized);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment