]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/slapcommon.c
Fixup for win64 commit
[openldap] / servers / slapd / slapcommon.c
index ea97c51df643dfee013a8ad260e1d3fd57d223f8..01a49554ebc3cc06daf23c4c4a0f55138ace5d72 100644 (file)
@@ -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
                 */