summaryrefslogtreecommitdiff
path: root/src/windows/leashdll/lshfunc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/windows/leashdll/lshfunc.c')
-rw-r--r--src/windows/leashdll/lshfunc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/windows/leashdll/lshfunc.c b/src/windows/leashdll/lshfunc.c
index 0f76cc334fd6..8dafb7bede3f 100644
--- a/src/windows/leashdll/lshfunc.c
+++ b/src/windows/leashdll/lshfunc.c
@@ -2898,7 +2898,7 @@ static BOOL cc_have_tickets(krb5_context ctx, krb5_ccache cache)
_tzset();
while (!(code = pkrb5_cc_next_cred(ctx, cache, &cur, &creds))) {
if ((!pkrb5_is_config_principal(ctx, creds.server)) &&
- (creds.times.endtime - time(0) > 0))
+ ((time_t)(DWORD)creds.times.endtime - time(0) > 0))
have_tickets = TRUE;
pkrb5_free_cred_contents(ctx, &creds);