This really should work... but it's no more broken than last commit

This commit is contained in:
Kurt Zeilenga 2001-12-24 20:20:29 +00:00
parent a61b777cdc
commit 5b49e1a9c5
2 changed files with 6 additions and 4 deletions

View File

@ -307,7 +307,8 @@ str2entry( char *s )
return NULL;
}
e->e_nname = *ndn;
e->e_nname.bv_val = ndn->bv_val;
e->e_nname.bv_len = ndn->bv_len;
free( ndn );
}

View File

@ -121,7 +121,7 @@ slap_tool_init(
switch ( i ) {
case 'b':
base.bv_val = strdup( optarg );
base.bv_len = strlen( optarg );
base.bv_len = strlen( base.bv_val );
case 'c': /* enable continue mode */
continuemode++;
@ -226,7 +226,7 @@ slap_tool_init(
if( be == NULL ) {
fprintf( stderr, "%s: slap_init no backend for \"%s\"\n",
progname, base );
progname, base.bv_val );
exit( EXIT_FAILURE );
}
/* If the named base is a glue master, operate on the
@ -248,7 +248,8 @@ slap_tool_init(
} else if ( dbnum < 0 || dbnum > (nbackends-1) ) {
fprintf( stderr,
"Database number selected via -n is out of range\n"
"Must be in the range 1 to %d (number of databases in the config file)\n",
"Must be in the range 1 to %d"
" (number of databases in the config file)\n",
nbackends );
exit( EXIT_FAILURE );