Commit 90b26b2d authored by Christian Schudt's avatar Christian Schudt

Merge pull request #348 from akrherz/of966

OF-966 <failure> tag not closed for TLS Negotitation Failure
parents 52dfe9ec a5f89504
......@@ -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;
}
......
......@@ -420,7 +420,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