From: Howard Chu Date: Wed, 19 Jan 2005 21:42:04 +0000 (+0000) Subject: Make sl_context just return NULL in tool mode, we have no threads here X-Git-Tag: OPENLDAP_REL_ENG_2_3_BP~321 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4c65aa9c449aecf7126ab04fb5fdfa575445c455;p=openldap Make sl_context just return NULL in tool mode, we have no threads here --- diff --git a/servers/slapd/sl_malloc.c b/servers/slapd/sl_malloc.c index aa143ed070..7931715817 100644 --- a/servers/slapd/sl_malloc.c +++ b/servers/slapd/sl_malloc.c @@ -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