mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 16:49:39 -05:00
Fix dnParent: must always return a pointer relative to the input pointer.
This commit is contained in:
parent
41c5a36376
commit
9ba9ac4d9e
1 changed files with 2 additions and 1 deletions
|
|
@ -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 a new issue