From: Pierangelo Masarati Date: Wed, 19 Nov 2008 17:08:48 +0000 (+0000) Subject: fix previous commit (ITS#5819) X-Git-Tag: ACLCHECK_0~1073 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=55010d5e4e39e21fc993b8b08887cc3d1c9d11a8;p=openldap fix previous commit (ITS#5819) --- diff --git a/servers/slapd/schema_check.c b/servers/slapd/schema_check.c index e45a63d7d7..eba6e707dd 100644 --- a/servers/slapd/schema_check.c +++ b/servers/slapd/schema_check.c @@ -880,12 +880,13 @@ entry_naming_check( ava->la_attr.bv_val ); break; case LDAP_NO_SUCH_ATTRIBUTE: - snprintf( textbuf, textlen, - "value of naming attribute '%s' is not present in entry", - ava->la_attr.bv_val ); if ( add_naming ) { add = 1; rc = LDAP_SUCCESS; + } else { + snprintf( textbuf, textlen, + "value of naming attribute '%s' is not present in entry", + ava->la_attr.bv_val ); } break; default: