From: Kurt Zeilenga Date: Sat, 9 Aug 2003 18:14:04 +0000 (+0000) Subject: Fix ITS#2672: add_loop_cnt wasn't counting (re2.1 only) X-Git-Tag: OPENLDAP_REL_ENG_2_1_23~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8333c0a4b87f1115a0c51fee7fed2dc73761133;p=thirdparty%2Fopenldap.git Fix ITS#2672: add_loop_cnt wasn't counting (re2.1 only) --- diff --git a/servers/slapd/back-bdb/id2entry.c b/servers/slapd/back-bdb/id2entry.c index 578e5ed435..3fb568c99c 100644 --- a/servers/slapd/back-bdb/id2entry.c +++ b/servers/slapd/back-bdb/id2entry.c @@ -125,6 +125,8 @@ int bdb_id2entry_rw( } if ( rc == 0 ) { + int add_loop_cnt = 0; + #ifdef BDB_HIER bdb_fix_dn(be, id, *e); #endif @@ -132,7 +134,6 @@ int bdb_id2entry_rw( &bdb->bi_cache, *e, rw, locker, lock); while ( ret == 1 || ret == -1 ) { Entry *ee; - int add_loop_cnt = 0; if ( (*e)->e_private != NULL ) { free ((*e)->e_private); }