summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2003-04-04 00:41:07 +0000
committerTim Potter <tpot@samba.org>2003-04-04 00:41:07 +0000
commite23cfba7f946d33cd9391e84ac8f6447e36335d0 (patch)
tree5f04d9c06849cc0cae8bbabb3de7e9d14972e801 /source3/utils
parent41ef3e1c2d0aee53109c5efb41b39344885cd7a4 (diff)
downloadsamba-e23cfba7f946d33cd9391e84ac8f6447e36335d0.tar.gz
samba-e23cfba7f946d33cd9391e84ac8f6447e36335d0.tar.bz2
samba-e23cfba7f946d33cd9391e84ac8f6447e36335d0.zip
Fix compiler warning - cli_lsa_query_info_policy actually returns the
domain name. We were passing in an already initialised string which was causing the warning. (This used to be commit 18685d137e2db6e4e93c655f1c4a97116a36c02c)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/net_rpc.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/source3/utils/net_rpc.c b/source3/utils/net_rpc.c
index 922fc027e6..69cf28f995 100644
--- a/source3/utils/net_rpc.c
+++ b/source3/utils/net_rpc.c
@@ -1880,7 +1880,7 @@ static int rpc_trustdom_list(int argc, const char **argv)
int num_domains, i, pad_len, col_len = 20;
DOM_SID *domain_sids;
char **trusted_dom_names;
- fstring pdc_name;
+ fstring pdc_name, dummy;
/* trusting domains listing variables */
POLICY_HND domain_hnd;
@@ -1927,8 +1927,10 @@ static int rpc_trustdom_list(int argc, const char **argv)
};
/* query info level 5 to obtain sid of a domain being queried */
- nt_status = cli_lsa_query_info_policy(cli, mem_ctx, &connect_hnd,
- 5 /* info level */, domain_name, &queried_dom_sid);
+ nt_status = cli_lsa_query_info_policy(
+ cli, mem_ctx, &connect_hnd, 5 /* info level */,
+ dummy, &queried_dom_sid);
+
if (NT_STATUS_IS_ERR(nt_status)) {
DEBUG(0, ("LSA Query Info failed. Returned error was %s\n",
nt_errstr(nt_status)));