From: Howard Chu Date: Fri, 1 Jul 2005 00:20:54 +0000 (+0000) Subject: ITS#3820 fix olcReadOnly check X-Git-Tag: OPENLDAP_AC_BP~478 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=21e49339b7a5186f2f3bd6080c2fb259e618d46e;p=openldap ITS#3820 fix olcReadOnly check --- diff --git a/servers/slapd/bconfig.c b/servers/slapd/bconfig.c index 1387bb43d8..ebbe436050 100644 --- a/servers/slapd/bconfig.c +++ b/servers/slapd/bconfig.c @@ -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());