diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2012-05-08 19:47:52 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2012-05-08 19:47:52 +0000 |
commit | 9a36eaa36e220f4773ad648cb0ce66137777709b (patch) | |
tree | 38234e1b689adcb5866e25c5e188ec648bbc1cc6 | |
parent | d3dee93474f3b9fe5ad11a345d98361d9b3d009f (diff) |
Notes
-rw-r--r-- | lib/libc/rpc/auth_unix.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/libc/rpc/auth_unix.c b/lib/libc/rpc/auth_unix.c index ff3ca7b675c0c..c0d25483adf20 100644 --- a/lib/libc/rpc/auth_unix.c +++ b/lib/libc/rpc/auth_unix.c @@ -185,6 +185,7 @@ authunix_create(machname, uid, gid, len, aup_gids) AUTH * authunix_create_default() { + AUTH *auth; int ngids; long ngids_max; char machname[MAXHOSTNAMELEN + 1]; @@ -207,8 +208,10 @@ authunix_create_default() if (ngids > NGRPS) ngids = NGRPS; /* XXX: interface problem; those should all have been unsigned */ - return (authunix_create(machname, (int)uid, (int)gid, ngids, - (int *)gids)); + auth = authunix_create(machname, (int)uid, (int)gid, ngids, + (int *)gids); + free(gids); + return (auth); } /* |