mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-16 20:06:06 -05:00
Fix 6c8e4f2 for empty suffixes
This commit is contained in:
parent
ee3f050000
commit
9dc1b05f30
1 changed files with 9 additions and 2 deletions
|
|
@ -734,8 +734,15 @@ loop_begin:
|
|||
n += isc.nrdns[i].bv_len;
|
||||
*n++ = ',';
|
||||
}
|
||||
memcpy(d, pdn.bv_val, pdn.bv_len+1);
|
||||
memcpy(n, pndn.bv_val, pndn.bv_len+1);
|
||||
if (pdn.bv_len) {
|
||||
memcpy(d, pdn.bv_val, pdn.bv_len+1);
|
||||
memcpy(n, pndn.bv_val, pndn.bv_len+1);
|
||||
} else {
|
||||
*--d = '\0';
|
||||
*--n = '\0';
|
||||
e->e_name.bv_len--;
|
||||
e->e_nname.bv_len--;
|
||||
}
|
||||
if (isc.nscope != 1) {
|
||||
op->o_tmpfree(pndn.bv_val, op->o_tmpmemctx);
|
||||
op->o_tmpfree(pdn.bv_val, op->o_tmpmemctx);
|
||||
|
|
|
|||
Loading…
Reference in a new issue