From c84ae5db07eeb5af0c42ff86c4aed5a1e1859abb Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Tue, 25 Mar 2014 15:18:17 -0700 Subject: [PATCH] ITS#7827 slapacl requires a valid suffix --- servers/slapd/slapcommon.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 */ -- 2.39.5