From 80f67ef11e0e1e80ab934764687c6e50a221ef02 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 18 Apr 2002 12:21:33 +0000 Subject: [PATCH] Fix slap_bv2ad initializing with wrong bv_len --- servers/slapd/ad.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.39.5