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

(ITS#4153) [libldap enhancement] The client library should store and return NULL instead of "" for matched, error and similar

Full_Name: Pierangelo Masarati
Version: HEAD
OS: irrelevant
URL: ftp://ftp.openldap.org/incoming/ldap-null-is-null.patch
Submission from: (NULL) (
Submitted by: ando

I think if the client library could return NULL instead of a malloc'ed "" we
would save a lot of useless memory allocation and fragmentation, and have a much
cleaner interface and save lots of checks and frees in slapd, mainly in
back-ldap/meta and syncrepl.

See also the discussion in openldap-commit.

I'd commit this to HEAD, since it's protected behind an #ifdef that's only
defined #ifdef LDAP_DEVEL.

Please comment.