Commit 0b213e57 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Send stream:error of type invalid_namespace before closing the connection. JM-543

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@3359 b35dd754-fafc-0310-a699-88a17e54d16e
parent 9c70df3f
...@@ -22,6 +22,7 @@ import org.jivesoftware.util.JiveGlobals; ...@@ -22,6 +22,7 @@ import org.jivesoftware.util.JiveGlobals;
import org.xmlpull.v1.XmlPullParser; import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException; import org.xmlpull.v1.XmlPullParserException;
import org.xmpp.packet.Packet; import org.xmpp.packet.Packet;
import org.xmpp.packet.StreamError;
import java.io.IOException; import java.io.IOException;
import java.util.ArrayList; import java.util.ArrayList;
...@@ -111,6 +112,8 @@ public class IncomingServerSession extends Session { ...@@ -111,6 +112,8 @@ public class IncomingServerSession extends Session {
} }
} }
else { else {
connection.deliverRawText(
new StreamError(StreamError.Condition.invalid_namespace).toXML());
Log.debug("Server TLS is disabled. Rejecting connection: " + connection); Log.debug("Server TLS is disabled. Rejecting connection: " + connection);
} }
} }
......
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