From: Howard Chu Date: Tue, 25 Mar 2014 22:18:17 +0000 (-0700) Subject: ITS#7827 slapacl requires a valid suffix X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c84ae5db07eeb5af0c42ff86c4aed5a1e1859abb;p=openldap ITS#7827 slapacl requires a valid suffix --- 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 */