From: Kurt Zeilenga Date: Thu, 26 Aug 1999 19:09:40 +0000 (+0000) Subject: Fix "database fubar" crash X-Git-Tag: TWEB_OL_BASE~105 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bc1186bfb1c37f60632f42b0f120a8846595b5ee;p=openldap Fix "database fubar" crash --- diff --git a/servers/slapd/backend.c b/servers/slapd/backend.c index 97552309a4..396beff3f1 100644 --- a/servers/slapd/backend.c +++ b/servers/slapd/backend.c @@ -380,6 +380,9 @@ backend_db_init( be->be_sizelimit = defsize; be->be_timelimit = deftime; + /* assign a default depth limit for alias deref */ + be->be_max_deref_depth = SLAPD_DEFAULT_MAXDEREFDEPTH; + be->be_realm = global_realm != NULL ? ch_strdup( global_realm ) : NULL; diff --git a/servers/slapd/config.c b/servers/slapd/config.c index 4d7d999c61..9152336753 100644 --- a/servers/slapd/config.c +++ b/servers/slapd/config.c @@ -133,9 +133,6 @@ read_config( const char *fname ) bi = NULL; be = backend_db_init( cargv[1] ); - /* assign a default depth limit for alias deref */ - be->be_max_deref_depth = SLAPD_DEFAULT_MAXDEREFDEPTH; - /* get pid file name */ } else if ( strcasecmp( cargv[0], "pidfile" ) == 0 ) { if ( cargc < 2 ) {