return 0;
}
+void ad_destroy( void *in )
+{
+ AttributeDescription *ad = in, *n;
+
+ for (;ad;ad = n) {
+ n = ad->ad_next;
+ ldap_memfree(ad);
+ }
+}
+
int slap_str2ad(
const char *str,
AttributeDescription **ad,
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;