Skip to content
Snippets Groups Projects
Commit 70d4ef9a authored by Howard Chu's avatar Howard Chu
Browse files

ITS#1714 dn->bv_val malloc len+1

parent ba5a5847
No related branches found
No related tags found
No related merge requests found
......@@ -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 );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment