ITS#9907 Move TLS context cleanup into lload_global_destroy

This commit is contained in:
Ondřej Kuzník 2022-10-12 11:01:53 +01:00 committed by Quanah Gibson-Mount
parent 572a9a1597
commit 13d9c925dd
2 changed files with 3 additions and 4 deletions

View file

@ -124,6 +124,9 @@ lload_global_destroy( void )
if ( lload_tls_ld ) {
ldap_unbind_ext( lload_tls_ld, NULL, NULL );
}
if ( lload_tls_ctx ) {
ldap_pvt_tls_ctx_free( lload_tls_ctx );
}
#endif
ldap_pvt_thread_mutex_destroy( &lload_wait_mutex );

View file

@ -890,10 +890,6 @@ stop:
lloadd_daemon_destroy();
#ifdef HAVE_TLS
if ( lload_tls_ld ) {
ldap_pvt_tls_ctx_free( lload_tls_ctx );
ldap_unbind_ext( lload_tls_ld, NULL, NULL );
}
ldap_pvt_tls_destroy();
#endif