summaryrefslogtreecommitdiff
path: root/source3/rpc_parse
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-06-09 18:45:31 +0000
committerJeremy Allison <jra@samba.org>2000-06-09 18:45:31 +0000
commit03e0164270ffd7ceeb8df6f3cc3917c111dc05f8 (patch)
tree1a12467cace2c98d4fc037e6acbed783bceb24c8 /source3/rpc_parse
parente58682eb077a79b5c54a0cea485b7d134a01f853 (diff)
downloadsamba-03e0164270ffd7ceeb8df6f3cc3917c111dc05f8.tar.gz
samba-03e0164270ffd7ceeb8df6f3cc3917c111dc05f8.tar.bz2
samba-03e0164270ffd7ceeb8df6f3cc3917c111dc05f8.zip
Luke, I am moving the code back into passdb/passdb.c, this the correct
place to do this, not in smbd/passwd.c Please don't change this without asking first, I have run this past Andrew so talk to him (I'm on vacation next week). I also removed the g_newXXX macros. There are essentially a private C extension, not used anywhere else in the code, and add no functionality over malloc(XX) and make the code harder to understand (everyone knows what malloc does). Jeremy. (This used to be commit e1b1b6fb6794ba02e1fea510a981fa0ce0d12b58)
Diffstat (limited to 'source3/rpc_parse')
-rw-r--r--source3/rpc_parse/parse_net.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpc_parse/parse_net.c b/source3/rpc_parse/parse_net.c
index c1b16b8864..bcc8e876b5 100644
--- a/source3/rpc_parse/parse_net.c
+++ b/source3/rpc_parse/parse_net.c
@@ -1072,7 +1072,7 @@ void init_net_user_info3(NET_USER_INFO_3 *usr,
if (num_groups > 0)
{
- usr->gids = g_new(DOM_GID, num_groups);
+ usr->gids = (DOM_GID *)malloc(sizeof(DOM_GID) * num_groups);
if (usr->gids == NULL)
return;
for (i = 0; i < num_groups; i++)
@@ -1190,7 +1190,7 @@ static BOOL net_io_user_info3(char *desc, NET_USER_INFO_3 *usr, prs_struct *ps,
if (UNMARSHALLING(ps) && usr->num_groups2 > 0)
{
- usr->gids = g_new(DOM_GID, usr->num_groups2);
+ usr->gids = (DOM_GID *)malloc(sizeof(DOM_GID)*usr->num_groups2);
if (usr->gids == NULL)
return False;
}