diff options
author | Tim Potter <tpot@samba.org> | 2003-04-14 04:00:15 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2003-04-14 04:00:15 +0000 |
commit | 00352663c495e076734a1070c03b19310d92613f (patch) | |
tree | 081962f5ae51e57d0871f86256eace9407824607 | |
parent | c79934c839cea726913c10e8e8d51d6299019ab2 (diff) | |
download | samba-00352663c495e076734a1070c03b19310d92613f.tar.gz samba-00352663c495e076734a1070c03b19310d92613f.tar.bz2 samba-00352663c495e076734a1070c03b19310d92613f.zip |
Merge of bugfix for cli_lsa_query_info_policy() usage.
(This used to be commit ab64a0b1e7666b6612659b5720eda451c0ab4857)
-rw-r--r-- | source3/utils/net_rpc.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/source3/utils/net_rpc.c b/source3/utils/net_rpc.c index 922fc027e6..863d420ff3 100644 --- a/source3/utils/net_rpc.c +++ b/source3/utils/net_rpc.c @@ -220,7 +220,7 @@ static int rpc_changetrustpw(int argc, const char **argv) * * This uses 'machinename' as the inital password, and changes it. * - * The password should be created with 'server manager' or eqiv first. + * The password should be created with 'server manager' or equiv first. * * All parameters are provided by the run_rpc_command function, except for * argc, argv which are passes through. @@ -332,7 +332,7 @@ int net_rpc_join(int argc, const char **argv) * display info about a rpc domain * * All parameters are provided by the run_rpc_command function, except for - * argc, argv which are passes through. + * argc, argv which are passed through. * * @param domain_sid The domain sid acquired from the remote server * @param cli A cli_state connected to the server. @@ -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))); |