From: Pierangelo Masarati Date: Mon, 15 Nov 2004 14:13:54 +0000 (+0000) Subject: don't list multiple occurrences of the same overlay X-Git-Tag: OPENLDAP_REL_ENG_2_3_0ALPHA~306 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5a91da66243b6fb3fe71a1fff33c07383691db99;p=openldap don't list multiple occurrences of the same overlay --- diff --git a/servers/slapd/back-monitor/database.c b/servers/slapd/back-monitor/database.c index ed45ca301a..3cc139bf46 100644 --- a/servers/slapd/back-monitor/database.c +++ b/servers/slapd/back-monitor/database.c @@ -217,11 +217,22 @@ monitor_subsys_database_init( (void)init_restrictedOperation( mi, e, be->be_restrictops ); if ( oi != NULL ) { - slap_overinst *on = oi->oi_list; + slap_overinst *on = oi->oi_list, + *on1 = on; for ( ; on; on = on->on_next ) { struct berval bv; slap_overinst *on2; + + for ( on2 = on1; on2 != on; on2 = on2->on_next ) { + if ( on2->on_bi.bi_type == on->on_bi.bi_type ) { + break; + } + } + + if ( on2 != on ) { + break; + } bv.bv_val = on->on_bi.bi_type; bv.bv_len = strlen( bv.bv_val ); @@ -246,7 +257,7 @@ monitor_subsys_database_init( } } -#if defined(SLAPD_LDAP) +#if 0 // defined(SLAPD_LDAP) if ( strcmp( bi->bi_type, "ldap" ) == 0 ) { struct ldapinfo *li = (struct ldapinfo *)be->be_private; struct berval bv;