Skip to content
Snippets Groups Projects
Commit 196fd630 authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

do not allow back-meta with no targets

parent f58ea89c
No related branches found
No related tags found
No related merge requests found
......@@ -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 ];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment