already have the strlen of the attrname in the berval->bv_len

This commit is contained in:
Mark Adamson 2001-11-12 03:15:40 +00:00
parent d717a7fb9f
commit ddd3a4b926

View 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;