From ebeddee6a1341b25a68fe7dd4983becf91d760b7 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 21 Dec 2004 07:08:11 +0000 Subject: r4306: Couple more MALLOC fixes from albert chin (china@thewrittenword.com). Jeremy. (This used to be commit c5a8bf3335606c070e1c74f339ea4c22d0adfa57) --- source3/lib/util_smbd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/lib') 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; } -- cgit