From a3eb2684c307e1000104266a71d5fafbc97ab3be Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Tue, 24 Sep 2002 21:29:33 +0000 Subject: enum_domains shouldn't crash when there are no domains available (This used to be commit d312e1c2b44905af87c4d550975eee78dbf2edee) --- source3/sam/interface.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'source3/sam') 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) { -- cgit