]> git.sur5r.net Git - openldap/commitdiff
Fix prev commit
authorHoward Chu <hyc@openldap.org>
Tue, 7 Mar 2006 12:55:27 +0000 (12:55 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 7 Mar 2006 12:55:27 +0000 (12:55 +0000)
servers/slapd/bconfig.c

index 4e2d7f2b64f3ffca729382b8346d8d8dc098006f..204d731d2cf35544354c1c82433bec951c2d7b90 100644 (file)
@@ -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;