Skip to content

Commit

Permalink
dfs_server_ad: s/acct/aname as acct() is a function
Browse files Browse the repository at this point in the history
metze

Autobuild-User(master): Stefan Metzmacher <[email protected]>
Autobuild-Date(master): Mon Jul 30 03:17:49 CEST 2012 on sn-devel-104
  • Loading branch information
metze-samba committed Jul 30, 2012
1 parent 6c21ae7 commit 13095a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dfs_server/dfs_server_ad.c
Original file line number Diff line number Diff line change
Expand Up @@ -233,15 +233,15 @@ static NTSTATUS get_dcs_insite(TALLOC_CTX *ctx, struct ldb_context *ldb,
NT_STATUS_HAVE_NO_MEMORY_AND_FREE(list->names[list->count], r);
} else {
char *tmp;
const char *acct = ldb_msg_find_attr_as_string(r2->msgs[0], "sAMAccountName", NULL);
if (acct == NULL) {
const char *aname = ldb_msg_find_attr_as_string(r2->msgs[0], "sAMAccountName", NULL);
if (aname == NULL) {
DEBUG(2,(__location__ ": sAMAccountName missing on %s\n",
ldb_dn_get_linearized(dn)));
talloc_free(r);
return NT_STATUS_INTERNAL_ERROR;
}

tmp = talloc_strdup(list->names, acct);
tmp = talloc_strdup(list->names, aname);
NT_STATUS_HAVE_NO_MEMORY_AND_FREE(tmp, r);

/* Netbios name is also the sAMAccountName for
Expand Down

0 comments on commit 13095a9

Please sign in to comment.