--- a/jdk/src/java.security.jgss/windows/native/libw2k_lsa_auth/NativeCreds.c Mon May 04 10:13:19 2015 +0200
+++ b/jdk/src/java.security.jgss/windows/native/libw2k_lsa_auth/NativeCreds.c Mon May 04 17:56:33 2015 +0800
@@ -389,7 +389,7 @@
jobject authTime, renewTillTime, hostAddresses = NULL;
KERB_EXTERNAL_TICKET *msticket;
int found = 0;
- FILETIME Now, EndTime, LocalEndTime;
+ FILETIME Now, EndTime;
int i, netypes;
jint *etypes = NULL;
@@ -476,8 +476,7 @@
GetSystemTimeAsFileTime(&Now);
EndTime.dwLowDateTime = msticket->EndTime.LowPart;
EndTime.dwHighDateTime = msticket->EndTime.HighPart;
- FileTimeToLocalFileTime(&EndTime, &LocalEndTime);
- if (CompareFileTime(&Now, &LocalEndTime) < 0) {
+ if (CompareFileTime(&Now, &EndTime) < 0) {
for (i=0; i<netypes; i++) {
if (etypes[i] == msticket->SessionKey.KeyType) {
found = 1;