From 117b686da462b1a45acfc0f71bc9bd7eff68280c Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sat, 11 Jun 2005 19:12:49 +0000 Subject: [PATCH] ITS#3765 don't allocate cache for empty IDLs --- servers/slapd/back-bdb/idl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/slapd/back-bdb/idl.c b/servers/slapd/back-bdb/idl.c index e3a2f26c49..c00ba93235 100644 --- a/servers/slapd/back-bdb/idl.c +++ b/servers/slapd/back-bdb/idl.c @@ -332,7 +332,7 @@ bdb_idl_cache_put( ee = (bdb_idl_cache_entry_t *) ch_malloc( sizeof( bdb_idl_cache_entry_t ) ); ee->db = db; - if ( rc == DB_NOTFOUND) { + if ( rc == DB_NOTFOUND || BDB_IDL_IS_ZERO( ids )) { ee->idl = NULL; } else { ee->idl = (ID*) ch_malloc( BDB_IDL_SIZEOF ( ids ) ); -- 2.39.5