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

Re: Detecting an error from ldap_get_values()

"Kurt D. Zeilenga" wrote:

> I'm thinking that the LDAP C API I-D should require the
> API to set LDAP_ERROR_NUMBER upon ldap_get_values() error.
> This issue should be raised to IETF-LDAPext.
> In the mean time, I would not object to adding code to
> OpenLDAP-devel to set LDAP_ERROR_NUMBER.

It is not setting, it is clearing a prior error code.  That's what
sendmail needs.  But it might break someone else's code, though
looking for an error that happened several API calls before is
rarely a robust practice and those affected possibly deserve
whatever they get for trying :-)