mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-26 17:49:59 -05:00
ITS#2970 fix build_new_dn for zero-length parent DN
This commit is contained in:
parent
b927f86e3f
commit
0aebe2e51a
1 changed files with 1 additions and 1 deletions
|
|
@ -843,7 +843,7 @@ build_new_dn( struct berval * new_dn,
|
|||
{
|
||||
char *ptr;
|
||||
|
||||
if ( parent_dn == NULL ) {
|
||||
if ( parent_dn == NULL || parent_dn->bv_len == 0 ) {
|
||||
ber_dupbv( new_dn, newrdn );
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue