Fix entry_get, only check mapped attr if attr was provided

This commit is contained in:
Howard Chu 2004-05-25 04:54:32 +00:00
parent 6e17b60648
commit 7488f557cd

View file

@ -571,8 +571,6 @@ ldap_back_entry_get(
rc = 1;
goto cleanup;
}
}
is_oc = (strcasecmp("objectclass", mapped.bv_val) == 0);
if (oc && !is_oc) {
gattr[0] = "objectclass";
@ -582,6 +580,8 @@ ldap_back_entry_get(
gattr[0] = mapped.bv_val;
gattr[1] = NULL;
}
}
if (oc) {
char *ptr;
ldap_back_map(&li->rwmap.rwm_oc, &oc->soc_cname, &mapped,