mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-23 16:19:35 -05:00
ITS#3765 don't allocate cache for empty IDLs
This commit is contained in:
parent
695369609b
commit
117b686da4
1 changed files with 1 additions and 1 deletions
|
|
@ -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 ) );
|
||||
|
|
|
|||
Loading…
Reference in a new issue