mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-22 23:59:34 -05:00
Don't underflow malloc'd memory in hdb_fix_dn()
This commit is contained in:
parent
43f219d752
commit
c7142fdec5
1 changed files with 2 additions and 2 deletions
|
|
@ -529,8 +529,8 @@ int hdb_fix_dn(
|
|||
}
|
||||
}
|
||||
BEI(e)->bei_modrdns = max;
|
||||
ptr[-1] = '\0';
|
||||
nptr[-1] = '\0';
|
||||
if ( ptr > e->e_name.bv_val ) ptr[-1] = '\0';
|
||||
if ( nptr > e->e_nname.bv_val ) nptr[-1] = '\0';
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue