[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
str2filter
Hi,
I used str2filter function to create the Filter structure and
found out that str2filter crashes in case of substring filter.
250 while ( *val ) {
251 if ( (nextstar = ldap_pvt_find_wildcard( val )) != NULL
)
252 *nextstar++ = '\0';
253
254 ldap_pvt_filter_value_unescape( val );
255
256 if ( gotstar == 0 ) {
257 f->f_sub_initial = ber_bvstrdup( val );
258
259 } else if ( nextstar == NULL ) {
260 f->f_sub_final = ber_bvstrdup( val );
261
262 } else {
263 charray_add( (char ***) &f->f_sub_any, (char *)
ber_bvstrdup( val ) );
264 }
265
266 gotstar = 1;
267 val = nextstar;
268 }
I patched it with
250 while ( val && *val ) {
but it also causes crashing when I call filter_free().
I assume that the filter structure created by str2filter() is
different from the filter structure created by get_filter().
Don't you support the str2filter function anymore?
If not, is there any other libraries I can use for creating
the Filter structure out of filter string?
Thanks.
June