mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-09 08:23:35 -05:00
do not allow back-meta with no targets
This commit is contained in:
parent
f58ea89c20
commit
196fd6308d
1 changed files with 7 additions and 0 deletions
|
|
@ -138,6 +138,13 @@ meta_back_db_open(
|
|||
not_always_anon_non_prescriptive = 0,
|
||||
rc;
|
||||
|
||||
if ( mi->mi_ntargets == 0 ) {
|
||||
Debug( LDAP_DEBUG_ANY,
|
||||
"meta_back_db_open: no targets defined\n",
|
||||
0, 0, 0 );
|
||||
return 1;
|
||||
}
|
||||
|
||||
for ( i = 0; i < mi->mi_ntargets; i++ ) {
|
||||
slap_bindconf sb = { BER_BVNULL };
|
||||
metatarget_t *mt = mi->mi_targets[ i ];
|
||||
|
|
|
|||
Loading…
Reference in a new issue