mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-18 11:05:48 +08:00
Fix dnParent: must always return a pointer relative to the input pointer.
This commit is contained in:
parent
41c5a36376
commit
9ba9ac4d9e
@ -624,7 +624,8 @@ dnParent(
|
||||
|
||||
/* one-level dn */
|
||||
if ( p == NULL ) {
|
||||
*pdn = slap_empty_bv;
|
||||
pdn->bv_len = 0;
|
||||
pdn->bv_val = dn->bv_val + dn->bv_len;
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user