]> git.sur5r.net Git - openldap/commitdiff
Make sl_context just return NULL in tool mode, we have no threads here
authorHoward Chu <hyc@openldap.org>
Wed, 19 Jan 2005 21:42:04 +0000 (21:42 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 19 Jan 2005 21:42:04 +0000 (21:42 +0000)
servers/slapd/sl_malloc.c

index aa143ed070372973d1cb5310bdda87ed9e654f70..79317158174d4e5ccdccc9c6049ad9d514564376 100644 (file)
@@ -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