From: Howard Chu Date: Sun, 11 Feb 2007 14:37:21 +0000 (+0000) Subject: Fix prev commit X-Git-Tag: OPENLDAP_REL_ENG_2_4_4ALPHA~8^2~25 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a031b9954691dc50db3153d1dbff2e522fd4f396;p=openldap Fix prev commit --- diff --git a/servers/slapd/schema_check.c b/servers/slapd/schema_check.c index 7d0ce830c2..19bed5b3bb 100644 --- a/servers/slapd/schema_check.c +++ b/servers/slapd/schema_check.c @@ -387,10 +387,12 @@ got_soc: } } } - snprintf( textbuf, textlen, - "class '%s' not allowed by content rule '%s'", - oc->soc_cname.bv_val, - ldap_contentrule2name( &cr->scr_crule ) ); + if ( k ) { + snprintf( textbuf, textlen, + "class '%s' not allowed by content rule '%s'", + oc->soc_cname.bv_val, + ldap_contentrule2name( &cr->scr_crule ) ); + } } else if ( global_disallows & SLAP_DISALLOW_AUX_WO_CR ) { k = -1; snprintf( textbuf, textlen,