From a94ff206c6a55777e1aaeeb32ca9d0842f0196b9 Mon Sep 17 00:00:00 2001 From: Jean-François Micouleau Date: Tue, 18 Dec 2001 00:30:25 +0000 Subject: fixing bug I introduced. J.F. (This used to be commit 49764852c516a22fba84d6289c93bed0e5da1c7e) --- source3/rpc_parse/parse_net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/rpc_parse') 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++) -- cgit