[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: ber_int_options.lbo_valid ?

Hallvard B Furuseth wrote:
Howard Chu writes:
This field is gratuitously set to LBER_INITIALIZED throughout some
heavily used liblber routines. There appears to be only one place
where the value is ever checked (in ber_set_option).

What will you replace it with?

Its function seems to be (slightly simplified):
When a ber_set_option(,LBER_OPT_MEMORY_FNS,) call is the first call to
liblber, then set the ber memory functions. Otherwise return failure,
since liblber is likely already using some other memory functions.
We can simply test if the memory function pointer has already been set.

 -- Howard Chu
 Chief Architect, Symas Corp.  http://www.symas.com
 Director, Highland Sun        http://highlandsun.com/hyc
 OpenLDAP Core Team            http://www.openldap.org/project/