summaryrefslogtreecommitdiff
path: root/source4/rpc_server/samr/dcesrv_samr.c
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-06-12 11:49:26 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-06-12 16:45:46 +0200
commitf2c3d39e7223f6bd162f3a38efa1b568aee621de (patch)
tree6193a4c3aef6c2bd22433a28104182904b54b3ec /source4/rpc_server/samr/dcesrv_samr.c
parent5a1cb7029cdeaaf2bf1c2093ddc00f51a15d95e5 (diff)
downloadsamba-f2c3d39e7223f6bd162f3a38efa1b568aee621de.tar.gz
samba-f2c3d39e7223f6bd162f3a38efa1b568aee621de.tar.bz2
samba-f2c3d39e7223f6bd162f3a38efa1b568aee621de.zip
s4:dcesrv_samr_EnumDomainAliases - return an empty array also when no entry was returned
Diffstat (limited to 'source4/rpc_server/samr/dcesrv_samr.c')
-rw-r--r--source4/rpc_server/samr/dcesrv_samr.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/source4/rpc_server/samr/dcesrv_samr.c b/source4/rpc_server/samr/dcesrv_samr.c
index 741a018958..2b7a8d17d6 100644
--- a/source4/rpc_server/samr/dcesrv_samr.c
+++ b/source4/rpc_server/samr/dcesrv_samr.c
@@ -1446,9 +1446,6 @@ static NTSTATUS dcesrv_samr_EnumDomainAliases(struct dcesrv_call_state *dce_call
if (ldb_cnt < 0) {
return NT_STATUS_INTERNAL_DB_CORRUPTION;
}
- if (ldb_cnt == 0) {
- return NT_STATUS_OK;
- }
/* convert to SamEntry format */
entries = talloc_array(mem_ctx, struct samr_SamEntry, ldb_cnt);