]> git.sur5r.net Git - openldap/commitdiff
Fix ITS#2672: add_loop_cnt wasn't counting (re2.1 only)
authorKurt Zeilenga <kurt@openldap.org>
Sat, 9 Aug 2003 18:14:04 +0000 (18:14 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sat, 9 Aug 2003 18:14:04 +0000 (18:14 +0000)
servers/slapd/back-bdb/id2entry.c

index 578e5ed435f703734c06798e51cdf8b8e6307735..3fb568c99c73bafa051f6b795bcdbdc0e50968dc 100644 (file)
@@ -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);
                        }