Commit c44ec4c8 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Added checking for binding namespace. JM-7

git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@2772 b35dd754-fafc-0310-a699-88a17e54d16e
parent 37554a58
......@@ -65,11 +65,13 @@ public class IQRouter extends BasicModule {
throw new NullPointerException();
}
Session session = sessionManager.getSession(packet.getFrom());
if (session == null || session.getStatus() == Session.STATUS_AUTHENTICATED
|| (isLocalServer(packet.getTo())
&& ("jabber:iq:auth".equals(packet.getChildElement().getNamespaceURI())
|| "jabber:iq:register".equals(packet.getChildElement().getNamespaceURI())))
) {
if (session == null || session.getStatus() == Session.STATUS_AUTHENTICATED || (
isLocalServer(packet.getTo()) && (
"jabber:iq:auth".equals(packet.getChildElement().getNamespaceURI()) ||
"jabber:iq:register"
.equals(packet.getChildElement().getNamespaceURI()) ||
"urn:ietf:params:xml:ns:xmpp-bind"
.equals(packet.getChildElement().getNamespaceURI())))) {
handle(packet);
}
else {
......
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