Fix prev commit

This commit is contained in:
Howard Chu 2009-02-26 23:16:41 +00:00
parent 72fb4246d6
commit 8e5ebf4dfb

View File

@ -808,7 +808,7 @@ slap_sort_vals(
}
}
done:
if ( rc == LDAP_TYPE_OR_VALUE_EXISTS && i >= 0 )
if ( match == 0 && i >= 0 )
*dup = ix[i];
/* For sorted attributes, put the values in index order */