git.samba.org
/
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
[samba.git]
/
source3
/
nsswitch
/
winbindd.c
diff --git
a/source3/nsswitch/winbindd.c
b/source3/nsswitch/winbindd.c
index 455fb74f1716b426c71c066bc136366d70d76bcd..6f4a0a275335d089266fa54f29922748af908a59 100644
(file)
--- a/
source3/nsswitch/winbindd.c
+++ b/
source3/nsswitch/winbindd.c
@@
-357,8
+357,7
@@
static void new_connection(int listen_sock, BOOL privileged)
/* Create new connection structure */
- if ((state = (struct winbindd_cli_state *)
- malloc(sizeof(*state))) == NULL)
+ if ((state = SMB_MALLOC_P(struct winbindd_cli_state)) == NULL)
return;
ZERO_STRUCTP(state);