From: Howard Chu Date: Fri, 5 Apr 2002 06:34:15 +0000 (+0000) Subject: ITS#1714 dn->bv_val malloc len+1 X-Git-Tag: OPENLDAP_REL_ENG_2_MP~252 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=70d4ef9a858eaf35be246a139297110d81d83710;p=openldap ITS#1714 dn->bv_val malloc len+1 --- diff --git a/servers/slapd/sasl.c b/servers/slapd/sasl.c index 18d2847f6c..ce037a693f 100644 --- a/servers/slapd/sasl.c +++ b/servers/slapd/sasl.c @@ -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 );