diff options
author | Andrew Bartlett <abartlet@samba.org> | 2008-07-21 12:05:53 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2008-07-21 12:05:53 +1000 |
commit | e16b2242e5f4702ad2800cd7bed46bcea2c1d4ac (patch) | |
tree | 28af5a39d9e918b45f720da791f4796c66992e14 /source4/rpc_server/lsa | |
parent | 7d84b72a70f01a29f0293f6d2f3515aebb1a4dd8 (diff) | |
download | samba-e16b2242e5f4702ad2800cd7bed46bcea2c1d4ac.tar.gz samba-e16b2242e5f4702ad2800cd7bed46bcea2c1d4ac.tar.bz2 samba-e16b2242e5f4702ad2800cd7bed46bcea2c1d4ac.zip |
Remove bogus test in 'enum trusted domains' LSA server.
The change to the RPC-LSA test proves that when the remote server has
0 trusted domains, it will return NT_STATUS_NO_MORE_ENTRIES, not
NT_STATUS_OK.
Andrew Bartlett
(This used to be commit 40a55b34c2ce75267cf004dc4cfb8153c061e66b)
Diffstat (limited to 'source4/rpc_server/lsa')
-rw-r--r-- | source4/rpc_server/lsa/dcesrv_lsa.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/source4/rpc_server/lsa/dcesrv_lsa.c b/source4/rpc_server/lsa/dcesrv_lsa.c index eb60f426d8..f02e2325a0 100644 --- a/source4/rpc_server/lsa/dcesrv_lsa.c +++ b/source4/rpc_server/lsa/dcesrv_lsa.c @@ -1130,9 +1130,6 @@ static NTSTATUS dcesrv_lsa_EnumTrustDom(struct dcesrv_call_state *dce_call, TALL if (count == -1) { return NT_STATUS_INTERNAL_DB_CORRUPTION; } - if (count == 0 || r->in.max_size == 0) { - return NT_STATUS_OK; - } /* convert to lsa_TrustInformation format */ entries = talloc_array(mem_ctx, struct lsa_DomainInfo, count); @@ -1218,9 +1215,6 @@ static NTSTATUS dcesrv_lsa_EnumTrustedDomainsEx(struct dcesrv_call_state *dce_ca if (count == -1) { return NT_STATUS_INTERNAL_DB_CORRUPTION; } - if (count == 0 || r->in.max_size == 0) { - return NT_STATUS_OK; - } /* convert to lsa_DomainInformation format */ entries = talloc_array(mem_ctx, struct lsa_TrustDomainInfoInfoEx, count); |