Skip to content

Commit

Permalink
Issue 6207 - Random crash in test_long_rdn CI test (#6215)
Browse files Browse the repository at this point in the history
CI test indexes/test_long_rdn sometime crashes
The issue is that a data returned by dblayer_bulk_nextdata iterator is wrongly freed
The fix is to avoid freeing the data

Issue: #6207

Reviewed by: @droideck (Thanks!)

(cherry picked from commit f2e581b)
  • Loading branch information
progier389 committed Feb 19, 2025
1 parent 2981e3a commit 37b4511
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ldap/servers/slapd/back-ldbm/ldbm_entryrdn.c
Original file line number Diff line number Diff line change
Expand Up @@ -1710,7 +1710,7 @@ _entryrdn_get_tombstone_elem(entryrdn_db_ctx_t *ctx,
for (dblayer_bulk_start(&data); DBI_RC_SUCCESS == dblayer_bulk_nextdata(&data, &dataret);) {
childelem = (rdn_elem *)dataret.data;
if (RDN_IS_REDIRECT(childelem)) {
rc = _entryrdn_resolve_redirect(ctx, &childelem, 1);
rc = _entryrdn_resolve_redirect(ctx, &childelem, 0);
if (rc) {
/* Should not have any retry on lmdb and
* DBI_RC_NOTFOUND means that redirect db is corrupted
Expand Down

0 comments on commit 37b4511

Please sign in to comment.