mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-13 14:27:59 +08:00
ITS#4489 fix slap_tls_ld cleanup
This commit is contained in:
parent
bd8514fb1e
commit
f5b815b1b3
@ -963,8 +963,10 @@ stop:
|
||||
/* Setting it to itself decreases refcount, allowing it to be freed
|
||||
* when the LD is freed.
|
||||
*/
|
||||
ldap_pvt_tls_set_option( slap_tls_ld, LDAP_OPT_X_TLS_CTX, slap_tls_ctx );
|
||||
ldap_ld_free( slap_tls_ld, 0, NULL, NULL );
|
||||
if ( slap_tls_ld ) {
|
||||
ldap_pvt_tls_set_option( slap_tls_ld, LDAP_OPT_X_TLS_CTX, slap_tls_ctx );
|
||||
ldap_unbind( slap_tls_ld );
|
||||
}
|
||||
ldap_pvt_tls_destroy();
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user