diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2002-09-26 15:20:11 +0000 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2002-09-26 15:20:11 +0000 |
commit | 6fa655c039b14283bccbe7da36a8c58813637b79 (patch) | |
tree | f7003d39751ff87a773851941fdcda7f1d6c0391 | |
parent | 30b24caae99cef03fc363a7ae1dd77ebab19657a (diff) | |
download | samba-6fa655c039b14283bccbe7da36a8c58813637b79.tar.gz samba-6fa655c039b14283bccbe7da36a8c58813637b79.tar.bz2 samba-6fa655c039b14283bccbe7da36a8c58813637b79.zip |
Fix segfault in sam_context_enum_domains - reported by Kai
(This used to be commit 1430473d3fdcc8e711fe483b84dfeefa6bd54905)
-rw-r--r-- | source3/sam/interface.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |