summaryrefslogtreecommitdiffstats
path: root/source/libads
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2005-07-01 10:28:31 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:58:09 -0500
commit7285edc4fe71f47ab648c31760c357fc2af29ce7 (patch)
tree94353a85c12b7297ff79e6d64352aa68456c1142 /source/libads
parent3846c0afa1db96239b3aaf2e7ee2427b48f6e2f0 (diff)
downloadsamba-7285edc4fe71f47ab648c31760c357fc2af29ce7.tar.gz
samba-7285edc4fe71f47ab648c31760c357fc2af29ce7.tar.xz
samba-7285edc4fe71f47ab648c31760c357fc2af29ce7.zip
r8048: Replace "done" with "failed".
Guenther
Diffstat (limited to 'source/libads')
-rw-r--r--source/libads/ldap.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/libads/ldap.c b/source/libads/ldap.c
index b3faad1fb10..81afd7f49e3 100644
--- a/source/libads/ldap.c
+++ b/source/libads/ldap.c
@@ -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));