From ddd3a4b926509c5c3637ba8497f3111401e801c1 Mon Sep 17 00:00:00 2001 From: Mark Adamson Date: Mon, 12 Nov 2001 03:15:40 +0000 Subject: [PATCH] already have the strlen of the attrname in the berval->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 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; -- 2.39.5