]> git.sur5r.net Git - openldap/commitdiff
ITS#3820 fix olcReadOnly check
authorHoward Chu <hyc@openldap.org>
Fri, 1 Jul 2005 00:20:54 +0000 (00:20 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 1 Jul 2005 00:20:54 +0000 (00:20 +0000)
servers/slapd/bconfig.c

index 1387bb43d8e9129dfdc65b16dfd7210d780c3930..ebbe4360509aec8cdb758c04938dd6245d1eabca 100644 (file)
@@ -694,7 +694,8 @@ config_generic(ConfigArgs *c) {
                        if ( !c->rvalue_vals ) rc = 1;
                        break;
                case CFG_RO:
-                       c->value_int = (c->be->be_restrictops & SLAP_RESTRICT_OP_WRITES) != 0;
+                       c->value_int = (c->be->be_restrictops & SLAP_RESTRICT_OP_WRITES) ==
+                               SLAP_RESTRICT_OP_WRITES;
                        break;
                case CFG_AZPOLICY:
                        c->value_string = ch_strdup( slap_sasl_getpolicy());