Bug in TLS starting/negotiation

If the TLS negotiation succeeds, openfire will return to the client the correct tag .

However, if it fails, openfire will return an invalid tag . Please note that the tag is not properly closed.

The correct response is and it appears in 2 places

  • org.jivesoftware.openfire.net.SocketReadingMode.negotiateTLS
  • org.jivesoftware.openfire.net.StanzaHandler.negotiateTLS

Thanks, filed [OF-966] failure tag not closed for TLS Negotiation Failure - Jive Software Open Source and will submit a PR shortly.