Full_Name: Hallvard B Furuseth Version: 4.2.23 OS: URL: ftp://ftp.openldap.org/incoming/ Submission from: (NULL) (129.240.6.233) Submitted by: hallvard
With LDAP_MEMORY_DEBUG, ber_memalloc_x() and ber_memcalloc_x() do not set ber_errno = LBER_ERROR_MEMORY on failure.
OTOH a number of memory.c functions set ber_errno = LBER_ERROR_MEMORY when they do not need to, after ber_memalloc & co already set it.
Fixing.