git.samba.org
/
vlendec
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cae3705
)
Fix segfault in sam_context_enum_domains - reported by Kai
author
Jelmer Vernooij
<jelmer@samba.org>
Thu, 26 Sep 2002 15:20:11 +0000
(15:20 +0000)
committer
Jelmer Vernooij
<jelmer@samba.org>
Thu, 26 Sep 2002 15:20:11 +0000
(15:20 +0000)
source/sam/interface.c
patch
|
blob
|
history
diff --git
a/source/sam/interface.c
b/source/sam/interface.c
index 320e39dbb46791d576260e2e2bacdab67407f112..0943a0e8f1398129b78fc2d567b3c9629e1a4833 100644
(file)
--- a/
source/sam/interface.c
+++ b/
source/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;
}