From: Pierangelo Masarati Date: Wed, 26 Sep 2007 22:37:35 +0000 (+0000) Subject: check for ee == NULL X-Git-Tag: OPENLDAP_REL_ENG_2_4_9~20^2~592 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=24db207196a453a4f9acdce08593c7e0ed53ce4c;p=openldap check for ee == NULL --- diff --git a/servers/slapd/back-bdb/idl.c b/servers/slapd/back-bdb/idl.c index 044f2a0d4c..dad12bf561 100644 --- a/servers/slapd/back-bdb/idl.c +++ b/servers/slapd/back-bdb/idl.c @@ -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;