From: Mark Adamson Date: Mon, 12 Nov 2001 03:15:40 +0000 (+0000) Subject: already have the strlen of the attrname in the berval->bv_len X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~884 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ddd3a4b926509c5c3637ba8497f3111401e801c1;p=openldap already have the strlen of the attrname in the berval->bv_len --- diff --git a/servers/slapd/ad.c b/servers/slapd/ad.c index 8d77c7ffb7..29a16f2292 100644 --- a/servers/slapd/ad.c +++ b/servers/slapd/ad.c @@ -98,7 +98,7 @@ int slap_bv2ad( if (options != NULL) desc.ad_cname.bv_len = options - name; else - desc.ad_cname.bv_len = strlen(name); + desc.ad_cname.bv_len = bv->bv_len; desc.ad_flags = SLAP_DESC_NONE; desc.ad_lang.bv_len = 0;