From 6fa655c039b14283bccbe7da36a8c58813637b79 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Thu, 26 Sep 2002 15:20:11 +0000 Subject: Fix segfault in sam_context_enum_domains - reported by Kai (This used to be commit 1430473d3fdcc8e711fe483b84dfeefa6bd54905) --- source3/sam/interface.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source3/sam/interface.c') diff --git a/source3/sam/interface.c b/source3/sam/interface.c index 320e39dbb4..0943a0e8f1 100644 --- a/source3/sam/interface.c +++ b/source3/sam/interface.c @@ -317,6 +317,7 @@ NTSTATUS context_sam_lookup_domain(const SAM_CONTEXT *context, const NT_USER_TOK while (tmp_methods) { if (strcmp(domain, tmp_methods->domain_name) == 0) { + (*domainsid) = (DOM_SID *)malloc(sizeof(DOM_SID)); sid_copy((*domainsid), &tmp_methods->domain_sid); return NT_STATUS_OK; } -- cgit