From: Pierangelo Masarati Date: Wed, 19 Nov 2008 16:02:22 +0000 (+0000) Subject: clear rc if value must be added (ITS#5819) X-Git-Tag: ACLCHECK_0~1074 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6f2004961018ccd0cd0334c2165fe53b35d6dd8a;p=openldap clear rc if value must be added (ITS#5819) --- diff --git a/servers/slapd/schema_check.c b/servers/slapd/schema_check.c index ca0f730980..e45a63d7d7 100644 --- a/servers/slapd/schema_check.c +++ b/servers/slapd/schema_check.c @@ -885,6 +885,7 @@ entry_naming_check( ava->la_attr.bv_val ); if ( add_naming ) { add = 1; + rc = LDAP_SUCCESS; } break; default: @@ -892,7 +893,10 @@ entry_naming_check( "naming attribute '%s' is inappropriate", ava->la_attr.bv_val ); } - rc = LDAP_NAMING_VIOLATION; + + if ( !add ) { + rc = LDAP_NAMING_VIOLATION; + } } }