TLS connection to an LDAP server established, used, and correctly terminated.
The order of the internal TLS shutdown operation is incorrect. This can cause unexpected behavior of the underlying crypto library (Mozilla NSS).
Patch applied to reoder the operations performed when closing the connection.
The order of TLS shutdown operations matches with Mozilla NSS crypto library documentation. No unexpected behavior and crashes caused by incorrect order of TLS shutdown operations are possible.