diff options
author | Jeremy Allison <jra@samba.org> | 2000-06-09 18:45:31 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2000-06-09 18:45:31 +0000 |
commit | e1b1b6fb6794ba02e1fea510a981fa0ce0d12b58 (patch) | |
tree | 15d663adacffeb95680c8eed21bd1cf7887543de /source/rpc_parse/parse_net.c | |
parent | b5ad24ae0b15643df5832e2369fb4e43c98a1359 (diff) | |
download | samba-e1b1b6fb6794ba02e1fea510a981fa0ce0d12b58.tar.gz samba-e1b1b6fb6794ba02e1fea510a981fa0ce0d12b58.tar.xz samba-e1b1b6fb6794ba02e1fea510a981fa0ce0d12b58.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.
Diffstat (limited to 'source/rpc_parse/parse_net.c')
-rw-r--r-- | source/rpc_parse/parse_net.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/rpc_parse/parse_net.c b/source/rpc_parse/parse_net.c index c1b16b8864f..bcc8e876b54 100644 --- a/source/rpc_parse/parse_net.c +++ b/source/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; } |