From 70d4ef9a858eaf35be246a139297110d81d83710 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 5 Apr 2002 06:34:15 +0000 Subject: [PATCH] ITS#1714 dn->bv_val malloc len+1 --- servers/slapd/sasl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); -- 2.39.5