From e1c2a67517a6f66edaf40314806c54a36ec2bbd0 Mon Sep 17 00:00:00 2001 From: Ralf Haferkamp Date: Thu, 4 Nov 2010 12:13:26 +0000 Subject: [PATCH] Unregister VLV control as well when last overlay instance is removed (additional fix for ITS#6647) --- servers/slapd/overlays/sssvlv.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/servers/slapd/overlays/sssvlv.c b/servers/slapd/overlays/sssvlv.c index 4eb0e8a26f..741019105a 100644 --- a/servers/slapd/overlays/sssvlv.c +++ b/servers/slapd/overlays/sssvlv.c @@ -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 */ -- 2.39.5