mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-20 16:01:10 +08:00
* grp.cc (getgroups32): Protect against closing cygheap->user.token.
This commit is contained in:
parent
a87878a965
commit
463e739282
@ -1,3 +1,7 @@
|
||||
2002-11-15 Pierre Humblet <pierre.humblet@ieee.org>
|
||||
|
||||
* grp.cc (getgroups32): Protect against closing cygheap->user.token.
|
||||
|
||||
2002-11-15 Christopher Faylor <cgf@redhat.com>
|
||||
|
||||
* include/cygwin/version.h: Bump API_MINOR to accommodate below
|
||||
|
@ -372,7 +372,8 @@ getgroups32 (int gidsetsize, __gid32_t *grouplist, __gid32_t gid,
|
||||
++cnt;
|
||||
if (gidsetsize && cnt > gidsetsize)
|
||||
{
|
||||
CloseHandle (hToken);
|
||||
if (hToken != cygheap->user.token)
|
||||
CloseHandle (hToken);
|
||||
goto error;
|
||||
}
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user