Commit 4866cd46 authored by akrherz's avatar akrherz Committed by Christian Schudt

OF-966 <failure> tag not closed for TLS Negotitation Failure

parent 66f6a822
......@@ -86,7 +86,7 @@ abstract class SocketReadingMode {
}
catch (IOException e) {
Log.error("Error while negotiating TLS: " + socketReader.connection, e);
socketReader.connection.deliverRawText("<failure xmlns=\"urn:ietf:params:xml:ns:xmpp-tls\">");
socketReader.connection.deliverRawText("<failure xmlns=\"urn:ietf:params:xml:ns:xmpp-tls\"/>");
socketReader.connection.close();
return false;
}
......
......@@ -404,7 +404,7 @@ public abstract class StanzaHandler {
}
catch (Exception e) {
Log.error("Error while negotiating TLS", e);
connection.deliverRawText("<failure xmlns=\"urn:ietf:params:xml:ns:xmpp-tls\">");
connection.deliverRawText("<failure xmlns=\"urn:ietf:params:xml:ns:xmpp-tls\"/>");
connection.close();
return false;
}
......
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