summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2002-09-24 21:29:33 +0000
committerJelmer Vernooij <jelmer@samba.org>2002-09-24 21:29:33 +0000
commita3eb2684c307e1000104266a71d5fafbc97ab3be (patch)
tree12bc5a790e1cb27aaeefe36746d04e092bf65526
parent529848e988fb28b54303408f31e21051ae0b94a6 (diff)
downloadsamba-a3eb2684c307e1000104266a71d5fafbc97ab3be.tar.gz
samba-a3eb2684c307e1000104266a71d5fafbc97ab3be.tar.bz2
samba-a3eb2684c307e1000104266a71d5fafbc97ab3be.zip
enum_domains shouldn't crash when there are no domains available
(This used to be commit d312e1c2b44905af87c4d550975eee78dbf2edee)
-rw-r--r--source3/sam/interface.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/source3/sam/interface.c b/source3/sam/interface.c
index e129604ca3..bb7b88b240 100644
--- a/source3/sam/interface.c
+++ b/source3/sam/interface.c
@@ -265,10 +265,6 @@ NTSTATUS context_sam_enum_domains(const SAM_CONTEXT *context, const NT_USER_TOKE
DEBUG(6,("context_sam_enum_domains: enumerating %d domains\n", (*domain_count)));
- if (*domain_count == 0) {
- return NT_STATUS_OK;
- }
-
tmp_methods = context->methods;
if (((*domains) = malloc( sizeof(DOM_SID) * (*domain_count))) == NULL) {