From: Quanah Gibson-Mount Date: Fri, 4 Nov 2011 22:21:34 +0000 (-0700) Subject: Fix SLAP_CONFIG_DELETE ifdef (already fixed in RE24) X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e625581af399028f22f5f6e2cb37ff4eae4a24b0;p=openldap Fix SLAP_CONFIG_DELETE ifdef (already fixed in RE24) --- 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; }