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:
Howard Chu 2002-09-02 22:25:26 +00:00
parent ae187de8c0
commit 3099d89d9e
2 changed files with 6 additions and 2 deletions

View file

@ -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,

View file

@ -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,