]> git.sur5r.net Git - openldap/commitdiff
already have the strlen of the attrname in the berval->bv_len
authorMark Adamson <adamson@openldap.org>
Mon, 12 Nov 2001 03:15:40 +0000 (03:15 +0000)
committerMark Adamson <adamson@openldap.org>
Mon, 12 Nov 2001 03:15:40 +0000 (03:15 +0000)
servers/slapd/ad.c

index 8d77c7ffb730ce045609c4399b52398304598a78..29a16f2292047fc21237baaa97017714a0f131e4 100644 (file)
@@ -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;