]> git.sur5r.net Git - openldap/commitdiff
reset freed resources
authorPierangelo Masarati <ando@openldap.org>
Mon, 14 Nov 2005 18:38:58 +0000 (18:38 +0000)
committerPierangelo Masarati <ando@openldap.org>
Mon, 14 Nov 2005 18:38:58 +0000 (18:38 +0000)
servers/slapd/back-bdb/modify.c

index 22b1f96901d39e758a3f370aa49b8af3a5347ee5..311e16cc4ef61ec502889e730fb7a4cd7f810cc0 100644 (file)
@@ -539,6 +539,8 @@ retry:      /* transaction retry */
                if ( fakeroot ) {
                        e->e_private = NULL;
                        entry_free( e );
+                       e = NULL;
+
                } else {
                        rc = bdb_cache_modify( e, dummy.e_attrs, bdb->bi_dbenv, locker, &lock );
                        switch( rc ) {