From e625581af399028f22f5f6e2cb37ff4eae4a24b0 Mon Sep 17 00:00:00 2001 From: Quanah Gibson-Mount Date: Fri, 4 Nov 2011 15:21:34 -0700 Subject: [PATCH] Fix SLAP_CONFIG_DELETE ifdef (already fixed in RE24) --- contrib/slapd-modules/noopsrch/noopsrch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/slapd-modules/noopsrch/noopsrch.c b/contrib/slapd-modules/noopsrch/noopsrch.c index f6d5256a42..99b2a28616 100644 --- a/contrib/slapd-modules/noopsrch/noopsrch.c +++ b/contrib/slapd-modules/noopsrch/noopsrch.c @@ -219,12 +219,12 @@ noopsrch_db_destroy( BackendDB *be, ConfigReply *cr ) #ifdef SLAP_CONFIG_DELETE overlay_unregister_control( be, LDAP_CONTROL_X_NOOPSRCH ); -#endif /* SLAP_CONFIG_DELETE */ - if ( --noopsrch_cnt == 0 ) { unregister_supported_control( LDAP_CONTROL_X_NOOPSRCH ); } +#endif /* SLAP_CONFIG_DELETE */ + return 0; } -- 2.39.5