| |
@@ -966,7 +966,10 @@
|
| |
slapi_sdn_init_dn_byval(&sdn, val->bv_val);
|
| |
rc = entryrdn_index_read(be, &sdn, &id, txn);
|
| |
slapi_sdn_done(&sdn);
|
| |
- if (rc) { /* failure */
|
| |
+ if (rc == DB_NOTFOUND) {
|
| |
+ /* return an empty list */
|
| |
+ return idl_alloc(0);
|
| |
+ } else if (rc) { /* failure */
|
| |
return NULL;
|
| |
} else { /* success */
|
| |
rc = idl_append_extend(&idl, id);
|
| |
Description: If searching on entrydn, and the vblaue is not found return an empty
list instead of NULL. This prevent these harmless error messages in
log
https://pagure.io/389-ds-base/issue/49722
Reviewed by: ?