1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-12-22 20:47:57 +01:00

Check for closing stream tag's namespace

This commit is contained in:
Florian Schmaus 2015-06-11 18:56:10 +02:00
parent de29871120
commit 3875664128

View file

@ -1097,6 +1097,10 @@ public class XMPPTCPConnection extends AbstractXMPPConnection {
break;
case XmlPullParser.END_TAG:
if (parser.getName().equals("stream")) {
if (!parser.getNamespace().equals("http://etherx.jabber.org/streams")) {
LOGGER.warning(XMPPTCPConnection.this + " </stream> but different namespace " + parser.getNamespace());
break;
}
closingStreamReceived.reportSuccess();
if (packetWriter.queue.isShutdown()) {
// We received a closing stream element *after* we initiated the