This is an automated email from the git hooks/post-receive script.
lkrispen pushed a commit to branch 389-ds-base-1.4.0 in repository 389-ds-base.
The following commit(s) were added to refs/heads/389-ds-base-1.4.0 by this push: new 6f61502 Ticket 49850 cont -fix crash in ldbm_non_leaf 6f61502 is described below
commit 6f61502eaa96eeab6d37a7822354850555f06974 Author: Ludwig Krispenz lkrispen@redhat.com AuthorDate: Thu Oct 24 14:26:20 2019 +0200
Ticket 49850 cont -fix crash in ldbm_non_leaf
Bug: if the ldif to be imported contains only one entry there are no leaf nodes and the call to qsort crashes
Fix: check that nodes is not NULL --- ldap/servers/slapd/back-ldbm/ancestorid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ldap/servers/slapd/back-ldbm/ancestorid.c b/ldap/servers/slapd/back-ldbm/ancestorid.c index 254a3aa..f26ac13 100644 --- a/ldap/servers/slapd/back-ldbm/ancestorid.c +++ b/ldap/servers/slapd/back-ldbm/ancestorid.c @@ -114,7 +114,7 @@ ldbm_get_nonleaf_ids(backend *be, DB_TXN *txn, IDList **idl, ImportJob *job) if (ret != 0) ldbm_nasty("ldbm_get_nonleaf_ids", sourcefile, 13030, ret);
- if (ret == 0) { + if (ret == 0 && nodes) { /* now sort it */ import_log_notice(job, SLAPI_LOG_INFO, "ldbm_get_nonleaf_ids", "Starting sort of ancestorid non-leaf IDs...");
389-commits@lists.fedoraproject.org