]> git.sur5r.net Git - openldap/commit
Reworked again the caching in case of failure.
authorPierangelo Masarati <ando@openldap.org>
Sat, 21 Jul 2001 10:53:06 +0000 (10:53 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 21 Jul 2001 10:53:06 +0000 (10:53 +0000)
commit9ee9f1e0e1332b5ca70cd6c61b694eb278fd4173
tree02b717470b070436b980958ee2434d4606946254
parentaec4430d593d316c0a102cb132b8e46d8346eda0
Reworked again the caching in case of failure.
Now operations that set the status of an entry to CREATING (add.c, modrdn.c)
need to set it to COMMIT, by calling cache_entry_commit, before returning
the entry itself, otherwise the entry is removed from the cache
and its private data is freed.
Should fix crashes due to add failures as in ITS#1245
servers/slapd/back-ldbm/add.c
servers/slapd/back-ldbm/cache.c
servers/slapd/back-ldbm/id2entry.c
servers/slapd/back-ldbm/modrdn.c
servers/slapd/back-ldbm/proto-back-ldbm.h