This is an automated email from the git hooks/post-receive script.
lkrispen pushed a commit to branch 389-ds-base-1.3.10
in repository 389-ds-base.
The following commit(s) were added to refs/heads/389-ds-base-1.3.10 by this push:
new 428a8ff Ticket 49850 cont -fix crash in ldbm_non_leaf
428a8ff is described below
commit 428a8ff5b9ef45f8acc74836fe0c83332a0cea27
Author: Ludwig Krispenz <lkrispen(a)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...");
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.