Commit 4f7d7881 authored by Howard Chu's avatar Howard Chu Committed by Quanah Gibson-Mount
Browse files

ITS#7827 slapacl requires a valid suffix

parent 525bf1df
...@@ -779,6 +779,11 @@ slap_tool_init( ...@@ -779,6 +779,11 @@ slap_tool_init(
ber_memfree( nbase.bv_val ); ber_memfree( nbase.bv_val );
BER_BVZERO( &nbase ); BER_BVZERO( &nbase );
if( be == NULL ) {
fprintf( stderr, "%s: slap_init no backend for \"%s\"\n",
progname, base.bv_val );
exit( EXIT_FAILURE );
}
switch ( tool ) { switch ( tool ) {
case SLAPACL: case SLAPACL:
goto startup; goto startup;
...@@ -787,11 +792,6 @@ slap_tool_init( ...@@ -787,11 +792,6 @@ slap_tool_init(
break; break;
} }
if( be == NULL ) {
fprintf( stderr, "%s: slap_init no backend for \"%s\"\n",
progname, base.bv_val );
exit( EXIT_FAILURE );
}
/* If the named base is a glue master, operate on the /* If the named base is a glue master, operate on the
* entire context * entire context
*/ */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment