dfs_server_ad: s/acct/aname as acct() is a function
authorStefan Metzmacher <metze@samba.org>
Sun, 29 Jul 2012 23:21:16 +0000 (01:21 +0200)
committerStefan Metzmacher <metze@samba.org>
Mon, 30 Jul 2012 01:17:49 +0000 (03:17 +0200)
metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Mon Jul 30 03:17:49 CEST 2012 on sn-devel-104

dfs_server/dfs_server_ad.c

index a354ec29e9926e18b5d20a5371e9bcce69dff2a5..ceabe0576e48d702825ae44be4256354b19ae16b 100644 (file)
@@ -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