int i, vals;
int index = 0, noindex = 0, renumber = 0, gotnvals = 0;
struct berval tmp;
- char *ptr;
if ( a->a_nvals && a->a_nvals != a->a_vals )
gotnvals = 1;
if ( indexes[0] != 0 || indexes[vals-1] != vals-1 ) {
renumber = 1;
}
+ ch_free( indexes );
} else {
renumber = 1;
}
/* If not equal, or we're only comparing the index,
* return result now.
*/
- if ( ret || ptr == iv.bv_val + iv.bv_len ) {
+ if ( ret || ptr == iv.bv_val + iv.bv_len - 1 ) {
*match = ( ret < 0 ) ? -1 : (ret > 0 );
return LDAP_SUCCESS;
}