I put this in and it works nicely
case LDAP_SUBSTRING_ANY:
Debug( LDAP_DEBUG_FILTER, " ANY\n", 0, 0, 0 );
if(( f->f_sub_any = ch_malloc( 2* sizeof(structberval *) )) ==NULL ) {
ber_bvfree( val );
goto return_error;
}
if (( f->f_sub_any[0] = ber_bvdup(val) ) == NULL){
ber_bvfree( val );
free( f->f_sub_any );
goto return_error;
}
f->f_sub_any[1] = NULL;
if( fstr ) {
-Mark Adamson