Commit ebc58ea5 authored by guus's avatar guus

Prevents NPE (by not trying to respond to a IQ response) JM-1237 (reviewed by Gato)

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@10304 b35dd754-fafc-0310-a699-88a17e54d16e
parent 2859d529
......@@ -557,6 +557,10 @@ public class LocalOutgoingServerSession extends LocalSession implements Outgoing
RoutingTable routingTable = XMPPServer.getInstance().getRoutingTable();
try {
if (packet instanceof IQ) {
if (((IQ) packet).isResponse()) {
Log.debug("XMPP specs forbid us to respond with an IQ error to: " + packet);
return;
}
IQ reply = new IQ();
reply.setID(packet.getID());
reply.setTo(packet.getFrom());
......
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