mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-28 18:49:34 -05:00
Don't use sasl_set_alloc on Cyrus 2, it manages all of its memory
internally and we don't want to get in the way.
This commit is contained in:
parent
ae187de8c0
commit
3099d89d9e
2 changed files with 6 additions and 2 deletions
|
|
@ -82,7 +82,8 @@ int ldap_int_sasl_init( void )
|
|||
return 0;
|
||||
}
|
||||
|
||||
#ifndef CSRIMALLOC
|
||||
/* SASL 2 takes care of its own memory completely internally */
|
||||
#if SASL_VERSION_MAJOR < 2 && !defined(CSRIMALLOC)
|
||||
sasl_set_alloc(
|
||||
ber_memalloc,
|
||||
ber_memcalloc,
|
||||
|
|
|
|||
|
|
@ -1114,12 +1114,15 @@ int slap_sasl_init( void )
|
|||
return -1;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
/* SASL 2 does its own memory management internally */
|
||||
#if SASL_VERSION_MAJOR < 2
|
||||
sasl_set_alloc(
|
||||
ber_memalloc,
|
||||
ber_memcalloc,
|
||||
ber_memrealloc,
|
||||
ber_memfree );
|
||||
#endif
|
||||
|
||||
sasl_set_mutex(
|
||||
ldap_pvt_sasl_mutex_new,
|
||||
|
|
|
|||
Loading…
Reference in a new issue