mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-05-28 04:35:57 -04:00
Make sl_context just return NULL in tool mode, we have no threads here
This commit is contained in:
parent
aff5133b89
commit
4c65aa9c44
1 changed files with 2 additions and 0 deletions
|
|
@ -552,6 +552,8 @@ slap_sl_context( void *ptr )
|
|||
struct slab_heap *sh = NULL;
|
||||
void *ctx;
|
||||
|
||||
if ( slapMode & SLAP_TOOL_MODE ) return NULL;
|
||||
|
||||
#ifdef NO_THREADS
|
||||
sh = slheap;
|
||||
#else
|
||||
|
|
|
|||
Loading…
Reference in a new issue