From bc1186bfb1c37f60632f42b0f120a8846595b5ee Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Thu, 26 Aug 1999 19:09:40 +0000 Subject: [PATCH] Fix "database fubar" crash --- servers/slapd/backend.c | 3 +++ servers/slapd/config.c | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) 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 ) { -- 2.39.5