diff options
author | Noriko Hosoi <nhosoi@redhat.com> | 2006-03-15 00:51:14 +0000 |
---|---|---|
committer | Noriko Hosoi <nhosoi@redhat.com> | 2006-03-15 00:51:14 +0000 |
commit | 7ec2e6103b976a4cd5e49dc52cc510c225898e3d (patch) | |
tree | 4eff71e75dbfba37eddc1aa0870fc2388f569d45 /ldap/servers | |
parent | 39df5f982ee9abb5357969a9086fa8dfe9e089a7 (diff) | |
download | ds-7ec2e6103b976a4cd5e49dc52cc510c225898e3d.tar.gz ds-7ec2e6103b976a4cd5e49dc52cc510c225898e3d.tar.xz ds-7ec2e6103b976a4cd5e49dc52cc510c225898e3d.zip |
[185477] ldif2db allows entries without a parent to be imported
The problem is that the new IDL code is not exposing the DB_NOTFOUND error when
the index key is not found. Import checks if the result was DB_NOTFOUND when
checking for the parent entry's entrydn index. This works fine with the old
IDL code. (nkinder@redhat.com)
Diffstat (limited to 'ldap/servers')
-rw-r--r-- | ldap/servers/slapd/back-ldbm/idl_new.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ldap/servers/slapd/back-ldbm/idl_new.c b/ldap/servers/slapd/back-ldbm/idl_new.c index cb391498..15c022a7 100644 --- a/ldap/servers/slapd/back-ldbm/idl_new.c +++ b/ldap/servers/slapd/back-ldbm/idl_new.c @@ -244,9 +244,7 @@ IDList * idl_new_fetch( ret = cursor->c_get(cursor,&key,&data,DB_SET); #endif if (0 != ret) { - if (DB_NOTFOUND == ret) { - ret = 0; - } else { + if (DB_NOTFOUND != ret) { #ifdef DB_USE_BULK_FETCH if (ret == ENOMEM) { LDAPDebug(LDAP_DEBUG_ANY, "database index is corrupt; " |