X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fslapd%2Fslapcommon.c;h=01a49554ebc3cc06daf23c4c4a0f55138ace5d72;hb=e7ddb6155c74b320d4714b953f2c1c7d2ab748ff;hp=153310f2916b262c2374bc19c4d187c67b9bf579;hpb=81f4d50c77bd3720a0f8f52f586a86561e7667ee;p=openldap diff --git a/servers/slapd/slapcommon.c b/servers/slapd/slapcommon.c index 153310f291..01a49554eb 100644 --- a/servers/slapd/slapcommon.c +++ b/servers/slapd/slapcommon.c @@ -2,7 +2,7 @@ /* $OpenLDAP$ */ /* This work is part of OpenLDAP Software . * - * Copyright 1998-2013 The OpenLDAP Foundation. + * Copyright 1998-2014 The OpenLDAP Foundation. * Portions Copyright 1998-2003 Kurt D. Zeilenga. * Portions Copyright 2003 IBM Corporation. * All rights reserved. @@ -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 */