From e30be8748aec9780dc7bff21dbb9f36defcdcf57 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Tue, 7 Mar 2006 12:55:27 +0000 Subject: [PATCH] Fix prev commit --- servers/slapd/bconfig.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; -- 2.39.5