From: Howard Chu Date: Thu, 18 Apr 2002 12:21:33 +0000 (+0000) Subject: Fix slap_bv2ad initializing with wrong bv_len X-Git-Tag: OPENLDAP_REL_ENG_2_MP~172 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=80f67ef11e0e1e80ab934764687c6e50a221ef02;p=openldap Fix slap_bv2ad initializing with wrong bv_len --- diff --git a/servers/slapd/ad.c b/servers/slapd/ad.c index 7836466d54..3d1335b435 100644 --- a/servers/slapd/ad.c +++ b/servers/slapd/ad.c @@ -315,7 +315,7 @@ done:; d2 = ch_malloc(sizeof(AttributeDescription) + dlen + 1); d2->ad_type = desc.ad_type; d2->ad_flags = desc.ad_flags; - d2->ad_cname.bv_len = desc.ad_cname.bv_len; + d2->ad_cname.bv_len = desc.ad_type->sat_cname.bv_len; d2->ad_lang.bv_len = desc.ad_lang.bv_len; if (dlen == 0) {