* 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,6 +372,7 @@ getgroups32 (int gidsetsize, __gid32_t *grouplist, __gid32_t gid,
|
|||
++cnt;
|
||||
if (gidsetsize && cnt > gidsetsize)
|
||||
{
|
||||
if (hToken != cygheap->user.token)
|
||||
CloseHandle (hToken);
|
||||
goto error;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue