From: Howard Chu Date: Sat, 11 Jun 2005 19:12:49 +0000 (+0000) Subject: ITS#3765 don't allocate cache for empty IDLs X-Git-Tag: OPENLDAP_AC_BP~539 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=117b686da462b1a45acfc0f71bc9bd7eff68280c;p=openldap ITS#3765 don't allocate cache for empty IDLs --- 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 ) );