ITS#9576 Use stored defaults

This commit is contained in:
Ondřej Kuzník 2021-06-08 09:54:38 +01:00 committed by Quanah Gibson-Mount
parent b4afe00942
commit 3dcfffbd00

View File

@ -1477,7 +1477,7 @@ config_generic(ConfigArgs *c) {
break;
case CFG_DEPTH:
c->be->be_max_deref_depth = SLAPD_DEFAULT_MAXDEREFDEPTH;
c->be->be_max_deref_depth = c->ca_desc->arg_default.v_int;
break;
case CFG_LASTMOD:
@ -1499,11 +1499,11 @@ config_generic(ConfigArgs *c) {
break;
case CFG_SSTR_IF_MAX:
index_substr_if_maxlen = SLAP_INDEX_SUBSTR_IF_MAXLEN_DEFAULT;
index_substr_if_maxlen = c->ca_desc->arg_default.v_uint;
break;
case CFG_SSTR_IF_MIN:
index_substr_if_minlen = SLAP_INDEX_SUBSTR_IF_MINLEN_DEFAULT;
index_substr_if_minlen = c->ca_desc->arg_default.v_uint;
break;
case CFG_ACL_ADD: