summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/sec_auth.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/sec_auth.cc')
-rw-r--r--winsup/cygwin/sec_auth.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/sec_auth.cc b/winsup/cygwin/sec_auth.cc
index 940483b4a..8af0b9837 100644
--- a/winsup/cygwin/sec_auth.cc
+++ b/winsup/cygwin/sec_auth.cc
@@ -61,8 +61,8 @@ get_full_privileged_inheritable_token (HANDLE token)
/* At this point we don't know if the user actually had TCB
privileges. Check if the linked token is a primary token.
If not, just return the original token. */
- if (GetTokenInformation (token, TokenType, (PVOID) &type,
- sizeof type, &size)
+ if (GetTokenInformation (linked.LinkedToken, TokenType,
+ (PVOID) &type, sizeof type, &size)
&& type != TokenPrimary)
debug_printf ("Linked Token is not a primary token!");
else