* 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>
|
2002-11-15 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
* include/cygwin/version.h: Bump API_MINOR to accommodate below
|
* include/cygwin/version.h: Bump API_MINOR to accommodate below
|
||||||
|
|
|
@ -372,6 +372,7 @@ getgroups32 (int gidsetsize, __gid32_t *grouplist, __gid32_t gid,
|
||||||
++cnt;
|
++cnt;
|
||||||
if (gidsetsize && cnt > gidsetsize)
|
if (gidsetsize && cnt > gidsetsize)
|
||||||
{
|
{
|
||||||
|
if (hToken != cygheap->user.token)
|
||||||
CloseHandle (hToken);
|
CloseHandle (hToken);
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue