ITS#4966 valsort_modify: ignore Delete modops with no values

This commit is contained in:
Howard Chu 2007-05-25 00:58:59 +00:00
parent 5af8347be4
commit 6186117f97

View File

@ -447,6 +447,9 @@ valsort_modify( Operation *op, SlapReply *rs )
if ( !(vi->vi_sort & VALSORT_WEIGHTED ))
continue;
for (ml = op->orm_modlist; ml; ml=ml->sml_next ) {
/* Must be a Delete Attr op, so no values to consider */
if ( !ml->sml_values )
continue;
if ( ml->sml_desc == vi->vi_ad )
break;
}