mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-25 00:59:45 -05:00
ITS#6338: Fix \0-termination of dnParent(x, x) for one-level DN x.
This commit is contained in:
parent
49b1729ad7
commit
68b914d72b
1 changed files with 1 additions and 1 deletions
|
|
@ -964,8 +964,8 @@ dnParent(
|
|||
|
||||
/* one-level dn */
|
||||
if ( p == NULL ) {
|
||||
pdn->bv_len = 0;
|
||||
pdn->bv_val = dn->bv_val + dn->bv_len;
|
||||
pdn->bv_len = 0;
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue