git.samba.org
/
idra
/
samba.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
r4088: Get medieval on our ass about malloc.... :-). Take control of all our allocation
[idra/samba.git]
/
source3
/
passdb
/
machine_sid.c
diff --git
a/source3/passdb/machine_sid.c
b/source3/passdb/machine_sid.c
index ce1354ce81830b995b701ec5ece29da981482b42..ae0b16273f207ad7dd8d6beced8fa0f619a91e47 100644
(file)
--- a/
source3/passdb/machine_sid.c
+++ b/
source3/passdb/machine_sid.c
@@
-83,7
+83,7
@@
static DOM_SID *pdb_generate_sam_sid(void)
BOOL is_dc = False;
DOM_SID *sam_sid;
- if(!(sam_sid=
(DOM_SID *)malloc(sizeof(DOM_SID)
)))
+ if(!(sam_sid=
SMB_MALLOC_P(DOM_SID
)))
return NULL;
generate_wellknown_sids();