From: Howard Chu Date: Tue, 7 Mar 2006 12:55:27 +0000 (+0000) Subject: Fix prev commit X-Git-Tag: OPENLDAP_REL_ENG_2_4_BP~134 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e30be8748aec9780dc7bff21dbb9f36defcdcf57;p=openldap Fix prev commit --- diff --git a/servers/slapd/bconfig.c b/servers/slapd/bconfig.c index 4e2d7f2b64..204d731d2c 100644 --- a/servers/slapd/bconfig.c +++ b/servers/slapd/bconfig.c @@ -898,7 +898,10 @@ config_generic(ConfigArgs *c) { c->value_int = (SLAP_NOLASTMOD(c->be) == 0); break; case CFG_MIRRORMODE: - c->value_int = (SLAP_SHADOW(c->be) && (SLAP_SINGLE_SHADOW(c->be) == 0)); + if ( SLAP_SHADOW(c->be)) + c->value_int = (SLAP_SINGLE_SHADOW(c->be) == 0); + else + rc = 1; break; case CFG_SSTR_IF_MAX: c->value_int = index_substr_if_maxlen;