summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/smbcontrol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/utils/smbcontrol.c b/source3/utils/smbcontrol.c
index 76036bfdde..db2eefe1e2 100644
--- a/source3/utils/smbcontrol.c
+++ b/source3/utils/smbcontrol.c
@@ -1035,7 +1035,7 @@ static bool do_winbind_dump_domain_list(struct messaging_context *msg_ctx,
print_pid_string_cb);
buf_len = sizeof(myid)+domain_len;
- buf = SMB_MALLOC(buf_len);
+ buf = SMB_MALLOC_ARRAY(uint8_t, buf_len);
if (!buf) {
return false;
}