From: Kurt Zeilenga Date: Tue, 12 Sep 2000 18:21:09 +0000 (+0000) Subject: Clean up defaultSearchBase code X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~2044 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bd9de9d90d0d3505ab43d72af9aea0466f50f072;p=openldap Clean up defaultSearchBase code --- diff --git a/servers/slapd/config.c b/servers/slapd/config.c index ef8fe5e0f2..3e6540c201 100644 --- a/servers/slapd/config.c +++ b/servers/slapd/config.c @@ -192,12 +192,13 @@ read_config( const char *fname ) return 1; } - if ( default_search_base != NULL ) { + if ( default_search_nbase != NULL ) { Debug( LDAP_DEBUG_ANY, "%s: line %d: " "default search base \"%s\" already defined " "(discarding old)\n", fname, lineno, default_search_base ); free( default_search_base ); + free( default_search_nbase ); } default_search_base = ch_strdup( cargv[1] ); @@ -205,9 +206,9 @@ read_config( const char *fname ) if( dn_normalize( default_search_nbase ) == NULL ) { Debug( LDAP_DEBUG_ANY, "%s: line %d: " - "invalid default search base \"%s\"" - "(discarding old)\n", + "invalid default search base \"%s\"\n" fname, lineno, default_search_base ); + return 1; } /* set maximum threads in thread pool */