summaryrefslogtreecommitdiffstats
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-05-31 10:15:25 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-05-31 12:08:59 +0200
commit11e2608ba97018987b0143521248a83b2dab07e6 (patch)
treedf609f415883cad648362cd93eb82914560339ba /source3/rpc_server
parent0eec33417eb56d1352fd66565f55162c62d86fcd (diff)
downloadsamba-11e2608ba97018987b0143521248a83b2dab07e6.tar.gz
samba-11e2608ba97018987b0143521248a83b2dab07e6.tar.xz
samba-11e2608ba97018987b0143521248a83b2dab07e6.zip
s3/s4:netrEnumerateTrustedDomains - this call returns a "NTSTATUS" result
See MS-NRPC 3.5.5.6.3.
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_netlog_nt.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/source3/rpc_server/srv_netlog_nt.c b/source3/rpc_server/srv_netlog_nt.c
index ec6ade661fb..f0b9babe0ee 100644
--- a/source3/rpc_server/srv_netlog_nt.c
+++ b/source3/rpc_server/srv_netlog_nt.c
@@ -384,8 +384,8 @@ WERROR _netr_LogonControl2Ex(pipes_struct *p,
_netr_NetrEnumerateTrustedDomains
*************************************************************************/
-WERROR _netr_NetrEnumerateTrustedDomains(pipes_struct *p,
- struct netr_NetrEnumerateTrustedDomains *r)
+NTSTATUS _netr_NetrEnumerateTrustedDomains(pipes_struct *p,
+ struct netr_NetrEnumerateTrustedDomains *r)
{
NTSTATUS status;
DATA_BLOB blob;
@@ -403,25 +403,25 @@ WERROR _netr_NetrEnumerateTrustedDomains(pipes_struct *p,
unbecome_root();
if (!NT_STATUS_IS_OK(status)) {
- return ntstatus_to_werror(status);
+ return status;
}
trusted_domains = talloc_zero_array(p->mem_ctx, const char *, num_domains + 1);
if (!trusted_domains) {
- return WERR_NOMEM;
+ return NT_STATUS_NO_MEMORY;
}
for (i = 0; i < num_domains; i++) {
trusted_domains[i] = talloc_strdup(trusted_domains, domains[i]->name);
if (!trusted_domains[i]) {
TALLOC_FREE(trusted_domains);
- return WERR_NOMEM;
+ return NT_STATUS_NO_MEMORY;
}
}
if (!push_reg_multi_sz(trusted_domains, &blob, trusted_domains)) {
TALLOC_FREE(trusted_domains);
- return WERR_NOMEM;
+ return NT_STATUS_NO_MEMORY;
}
r->out.trusted_domains_blob->data = blob.data;
@@ -429,7 +429,7 @@ WERROR _netr_NetrEnumerateTrustedDomains(pipes_struct *p,
DEBUG(6,("_netr_NetrEnumerateTrustedDomains: %d\n", __LINE__));
- return WERR_OK;
+ return NT_STATUS_OK;
}
/******************************************************************