Commit e1c2a675 authored by Ralf Haferkamp's avatar Ralf Haferkamp
Browse files

Unregister VLV control as well when last overlay instance

is removed (additional fix for ITS#6647)
parent ccd5b3d5
......@@ -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 */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment