mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-28 02:29:34 -05:00
Unregister VLV control as well when last overlay instance
is removed (additional fix for ITS#6647)
This commit is contained in:
parent
ccd5b3d52d
commit
e1c2a67517
1 changed files with 3 additions and 2 deletions
|
|
@ -1211,19 +1211,20 @@ static int sssvlv_db_destroy(
|
|||
{
|
||||
slap_overinst *on = (slap_overinst *)be->bd_info;
|
||||
sssvlv_info *si = (sssvlv_info *)on->on_bi.bi_private;
|
||||
|
||||
|
||||
ov_count--;
|
||||
if ( !ov_count && sort_conns) {
|
||||
sort_conns--;
|
||||
ch_free(sort_conns);
|
||||
ldap_pvt_thread_mutex_destroy( &sort_conns_mutex );
|
||||
}
|
||||
|
||||
|
||||
#ifdef SLAP_CONFIG_DELETE
|
||||
overlay_unregister_control( be, LDAP_CONTROL_SORTREQUEST );
|
||||
overlay_unregister_control( be, LDAP_CONTROL_VLVREQUEST );
|
||||
if ( ov_count == 0 ) {
|
||||
unregister_supported_control( LDAP_CONTROL_SORTREQUEST );
|
||||
unregister_supported_control( LDAP_CONTROL_VLVREQUEST );
|
||||
}
|
||||
#endif /* SLAP_CONFIG_DELETE */
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue