ITS#2827 patch from Masato Taruishi

This commit is contained in:
Howard Chu 2003-11-13 08:22:03 +00:00
parent fb493f5f3a
commit 14ea115209

View file

@ -291,7 +291,7 @@ modify_delete_values(
snprintf( textbuf, textlen, snprintf( textbuf, textlen,
"%s: matching rule failed", "%s: matching rule failed",
mod->sm_desc->ad_cname.bv_val ); mod->sm_desc->ad_cname.bv_val );
goto return_results; break;
} }
if ( match != 0 ) { if ( match != 0 ) {
@ -317,9 +317,13 @@ modify_delete_values(
"modify/delete: %s: no such value", "modify/delete: %s: no such value",
mod->sm_desc->ad_cname.bv_val ); mod->sm_desc->ad_cname.bv_val );
rc = LDAP_NO_SUCH_ATTRIBUTE; rc = LDAP_NO_SUCH_ATTRIBUTE;
if ( i > 0 ) {
break;
} else {
goto return_results; goto return_results;
} }
} }
}
/* compact array skipping dummies */ /* compact array skipping dummies */
for ( k = 0, j = 0; a->a_vals[k].bv_val != NULL; k++ ) { for ( k = 0, j = 0; a->a_vals[k].bv_val != NULL; k++ ) {