mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
already have the strlen of the attrname in the berval->bv_len
This commit is contained in:
parent
d717a7fb9f
commit
ddd3a4b926
@ -98,7 +98,7 @@ int slap_bv2ad(
|
|||||||
if (options != NULL)
|
if (options != NULL)
|
||||||
desc.ad_cname.bv_len = options - name;
|
desc.ad_cname.bv_len = options - name;
|
||||||
else
|
else
|
||||||
desc.ad_cname.bv_len = strlen(name);
|
desc.ad_cname.bv_len = bv->bv_len;
|
||||||
|
|
||||||
desc.ad_flags = SLAP_DESC_NONE;
|
desc.ad_flags = SLAP_DESC_NONE;
|
||||||
desc.ad_lang.bv_len = 0;
|
desc.ad_lang.bv_len = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user