1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

r8048: Replace "done" with "failed".

Guenther
This commit is contained in:
Günther Deschner 2005-07-01 10:28:31 +00:00 committed by Gerald (Jerry) Carter
parent 3846c0afa1
commit 7285edc4fe

View File

@ -2397,28 +2397,28 @@ const char *ads_get_attrname_by_oid(ADS_STRUCT *ads, TALLOC_CTX *mem_ctx, const
const char *attrs[] = { "lDAPDisplayName", NULL };
if (ads == NULL || mem_ctx == NULL || OID == NULL) {
goto done;
goto failed;
}
expr = talloc_asprintf(mem_ctx, "(attributeId=%s)", OID);
if (expr == NULL) {
goto done;
goto failed;
}
rc = ads_do_search_retry(ads, ads->config.schema_path,
LDAP_SCOPE_SUBTREE, expr, attrs, &res);
if (!ADS_ERR_OK(rc)) {
goto done;
goto failed;
}
count = ads_count_replies(ads, res);
if (count == 0 || !res) {
goto done;
goto failed;
}
return ads_pull_string(ads, mem_ctx, res, "lDAPDisplayName");
done:
failed:
DEBUG(0,("ads_get_attrname_by_oid: failed to retrieve name for oid: %s\n",
OID));