mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
check for ee == NULL
This commit is contained in:
parent
a0d26ada9c
commit
24db207196
1 changed files with 1 additions and 1 deletions
|
|
@ -379,7 +379,7 @@ bdb_idl_cache_put(
|
|||
if ( ++bdb->bi_idl_cache_size > bdb->bi_idl_cache_max_size ) {
|
||||
int i;
|
||||
ee = bdb->bi_idl_lru_tail;
|
||||
for ( i = 0; i < 10; i++, ee = eprev ) {
|
||||
for ( i = 0; ee != NULL && i < 10; i++, ee = eprev ) {
|
||||
eprev = ee->idl_lru_prev;
|
||||
if ( eprev == ee ) {
|
||||
eprev = NULL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue