diff --git a/servers/slapd/slapcommon.c b/servers/slapd/slapcommon.c index ea97c51df6..01a49554eb 100644 --- a/servers/slapd/slapcommon.c +++ b/servers/slapd/slapcommon.c @@ -786,6 +786,11 @@ slap_tool_init( ber_memfree( nbase.bv_val ); 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 ) { case SLAPACL: goto startup; @@ -794,11 +799,6 @@ slap_tool_init( 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 * entire context */