From 4c65aa9c449aecf7126ab04fb5fdfa575445c455 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 19 Jan 2005 21:42:04 +0000 Subject: [PATCH] Make sl_context just return NULL in tool mode, we have no threads here --- servers/slapd/sl_malloc.c | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.39.5