mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-16 20:06:06 -05:00
ITS#1714 dn->bv_val malloc len+1
This commit is contained in:
parent
ba5a584729
commit
70d4ef9a85
1 changed files with 1 additions and 1 deletions
|
|
@ -220,7 +220,7 @@ int slap_sasl_getdn( Connection *conn, char *id,
|
|||
|
||||
/* Build the new dn */
|
||||
c1 = dn->bv_val;
|
||||
dn->bv_val = ch_malloc( len );
|
||||
dn->bv_val = ch_malloc( len+1 );
|
||||
p = slap_strcopy( dn->bv_val, "uid=" );
|
||||
p = slap_strcopy( p, c1 );
|
||||
ch_free( c1 );
|
||||
|
|
|
|||
Loading…
Reference in a new issue