]> git.sur5r.net Git - openldap/commitdiff
Fix SLAP_CONFIG_DELETE ifdef (already fixed in RE24)
authorQuanah Gibson-Mount <quanah@openldap.org>
Fri, 4 Nov 2011 22:21:34 +0000 (15:21 -0700)
committerQuanah Gibson-Mount <quanah@openldap.org>
Fri, 4 Nov 2011 22:21:34 +0000 (15:21 -0700)
contrib/slapd-modules/noopsrch/noopsrch.c

index f6d5256a42b85a580352b00754ded028da93d81b..99b2a28616b236e03b3550af6a71130c19e608ec 100644 (file)
@@ -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;
 }