mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-02-17 14:00:30 +08:00
If dn2id returns ID but id2entry returns NULL, log it.
Assume entry was deleted from underneath the dn2entry call, hence processing is same as if NOID had been returned.
This commit is contained in:
parent
4863d98084
commit
4194c3ee85
@ -177,6 +177,14 @@ dn2entry(
|
||||
return( e );
|
||||
}
|
||||
|
||||
if ( id != NOID ) {
|
||||
Debug(LDAP_DEBUG_ANY,
|
||||
"dn2entry_%s: no entry for valid id (%lu), dn \"%s\"\n",
|
||||
rw ? "w" : "r", id, dn);
|
||||
/* must have been deleted from underneath us */
|
||||
/* treat as if NOID was found */
|
||||
}
|
||||
|
||||
/* stop when we get to the suffix */
|
||||
if ( be_issuffix( be, dn ) ) {
|
||||
return( NULL );
|
||||
|
Loading…
Reference in New Issue
Block a user