summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-François Micouleau <jfm@samba.org>2001-12-18 00:30:25 +0000
committerJean-François Micouleau <jfm@samba.org>2001-12-18 00:30:25 +0000
commita94ff206c6a55777e1aaeeb32ca9d0842f0196b9 (patch)
tree9f1757c809df58f8b4f4b1e175a72aa0f533c078
parent9fc3e980e910b480536d55ebac7331c287f60065 (diff)
downloadsamba-a94ff206c6a55777e1aaeeb32ca9d0842f0196b9.tar.gz
samba-a94ff206c6a55777e1aaeeb32ca9d0842f0196b9.tar.bz2
samba-a94ff206c6a55777e1aaeeb32ca9d0842f0196b9.zip
fixing bug I introduced.
J.F. (This used to be commit 49764852c516a22fba84d6289c93bed0e5da1c7e)
-rw-r--r--source3/rpc_parse/parse_net.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_parse/parse_net.c b/source3/rpc_parse/parse_net.c
index bb123330ee..b584673f38 100644
--- a/source3/rpc_parse/parse_net.c
+++ b/source3/rpc_parse/parse_net.c
@@ -1296,7 +1296,7 @@ void init_net_user_info3(TALLOC_CTX *ctx, NET_USER_INFO_3 *usr, SAM_ACCOUNT *sam
usr->num_groups2 = num_groups;
usr->gids = (DOM_GID *)talloc_zero(ctx,sizeof(DOM_GID) * (num_groups));
- if (usr->gids == NULL)
+ if (usr->gids == NULL && num_groups>0)
return;
for (i = 0; i < num_groups; i++)