]> git.sur5r.net Git - openldap/commitdiff
Fix slap_bv2ad initializing with wrong bv_len
authorHoward Chu <hyc@openldap.org>
Thu, 18 Apr 2002 12:21:33 +0000 (12:21 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 18 Apr 2002 12:21:33 +0000 (12:21 +0000)
servers/slapd/ad.c

index 7836466d540c24a0173692478ff6d989bb709cf3..3d1335b435d86c45d0073b9794e92502be90c6a8 100644 (file)
@@ -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) {