mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-25 17:19:43 -05:00
ITS#4135 remove client socket from frontend control before unbinding
This commit is contained in:
parent
6fcfaedf90
commit
9ee48976e2
1 changed files with 3 additions and 0 deletions
|
|
@ -980,6 +980,9 @@ done:
|
|||
if ( res ) ldap_msgfree( res );
|
||||
|
||||
if ( rc && rc != LDAP_SYNC_REFRESH_REQUIRED && si->si_ld ) {
|
||||
ber_socket_t s;
|
||||
ldap_get_option( si->si_ld, LDAP_OPT_DESC, &s );
|
||||
connection_client_stop( s );
|
||||
ldap_unbind_ext( si->si_ld, NULL, NULL );
|
||||
si->si_ld = NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue