SLAP_NVALUES fix matchedValues

This commit is contained in:
Howard Chu 2003-03-24 02:03:33 +00:00
parent 5ad51b6150
commit bb287d666b

View file

@ -235,7 +235,12 @@ test_ava_vrFilter(
}
for ( bv = a->a_vals, j=0; bv->bv_val != NULL; bv++, j++ ) {
#ifdef SLAP_NVALUES
bv = a->a_nvals;
#else
bv = a->a_vals;
#endif
for ( j=0; bv->bv_val != NULL; bv++, j++ ) {
int ret;
int rc;
const char *text;
@ -321,7 +326,12 @@ test_substrings_vrFilter(
continue;
}
for ( bv = a->a_vals, j = 0; bv->bv_val != NULL; bv++, j++ ) {
#ifdef SLAP_NVALUES
bv = a->a_nvals;
#else
bv = a->a_vals;
#endif
for ( j = 0; bv->bv_val != NULL; bv++, j++ ) {
int ret;
int rc;
const char *text;