diff options
author | Jean-François Micouleau <jfm@samba.org> | 2001-12-18 00:30:25 +0000 |
---|---|---|
committer | Jean-François Micouleau <jfm@samba.org> | 2001-12-18 00:30:25 +0000 |
commit | 49764852c516a22fba84d6289c93bed0e5da1c7e (patch) | |
tree | b94d872791d7fbe107c044078daa111be245f723 | |
parent | cb61606b8e2852779a03dab3f99a8886edd7a97f (diff) | |
download | samba-49764852c516a22fba84d6289c93bed0e5da1c7e.tar.gz samba-49764852c516a22fba84d6289c93bed0e5da1c7e.tar.xz samba-49764852c516a22fba84d6289c93bed0e5da1c7e.zip |
fixing bug I introduced.
J.F.
-rw-r--r-- | source/rpc_parse/parse_net.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/rpc_parse/parse_net.c b/source/rpc_parse/parse_net.c index bb123330eea..b584673f386 100644 --- a/source/rpc_parse/parse_net.c +++ b/source/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++) |