diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-05-31 10:15:25 +0200 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-05-31 12:08:59 +0200 |
commit | 11e2608ba97018987b0143521248a83b2dab07e6 (patch) | |
tree | df609f415883cad648362cd93eb82914560339ba /source4 | |
parent | 0eec33417eb56d1352fd66565f55162c62d86fcd (diff) | |
download | samba-11e2608ba97018987b0143521248a83b2dab07e6.tar.gz samba-11e2608ba97018987b0143521248a83b2dab07e6.tar.bz2 samba-11e2608ba97018987b0143521248a83b2dab07e6.zip |
s3/s4:netrEnumerateTrustedDomains - this call returns a "NTSTATUS" result
See MS-NRPC 3.5.5.6.3.
Diffstat (limited to 'source4')
-rw-r--r-- | source4/rpc_server/netlogon/dcerpc_netlogon.c | 4 | ||||
-rw-r--r-- | source4/torture/rpc/netlogon.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/source4/rpc_server/netlogon/dcerpc_netlogon.c b/source4/rpc_server/netlogon/dcerpc_netlogon.c index cfcb4f6aaa..8bfa44988e 100644 --- a/source4/rpc_server/netlogon/dcerpc_netlogon.c +++ b/source4/rpc_server/netlogon/dcerpc_netlogon.c @@ -1066,9 +1066,9 @@ static NTSTATUS dcesrv_netr_DatabaseRedo(struct dcesrv_call_state *dce_call, TAL /* - netr_NetrEnumerateTurstedDomains + netr_NetrEnumerateTrustedDomains */ -static WERROR dcesrv_netr_NetrEnumerateTrustedDomains(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, +static NTSTATUS dcesrv_netr_NetrEnumerateTrustedDomains(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, struct netr_NetrEnumerateTrustedDomains *r) { DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR); diff --git a/source4/torture/rpc/netlogon.c b/source4/torture/rpc/netlogon.c index b1d6d1b557..03de3bdc10 100644 --- a/source4/torture/rpc/netlogon.c +++ b/source4/torture/rpc/netlogon.c @@ -2139,7 +2139,7 @@ static bool test_netr_NetrEnumerateTrustedDomains(struct torture_context *tctx, status = dcerpc_netr_NetrEnumerateTrustedDomains_r(b, tctx, &r); torture_assert_ntstatus_ok(tctx, status, "netr_NetrEnumerateTrustedDomains"); - torture_assert_werr_ok(tctx, r.out.result, "NetrEnumerateTrustedDomains"); + torture_assert_ntstatus_ok(tctx, r.out.result, "NetrEnumerateTrustedDomains"); return true; } |