summaryrefslogtreecommitdiff
path: root/source3/lib/util_smbd.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib/util_smbd.c')
-rw-r--r--source3/lib/util_smbd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/util_smbd.c b/source3/lib/util_smbd.c
index 58e7d9c627..586362c1e4 100644
--- a/source3/lib/util_smbd.c
+++ b/source3/lib/util_smbd.c
@@ -45,7 +45,7 @@ BOOL getgroups_user(const char *user, gid_t primary_gid, gid_t **ret_groups, int
int i;
max_grp = groups_max();
- temp_groups = SMB_MALLOC_P(gid_t, max_grp);
+ temp_groups = SMB_MALLOC_ARRAY(gid_t, max_grp);
if (! temp_groups) {
return False;
}