From 1faea3ffcff283b033fe5ef50675177883fb74d7 Mon Sep 17 00:00:00 2001 From: Nicolas Williams Date: Wed, 21 Jan 2026 18:08:39 -0600 Subject: [PATCH] kdc: Make MAX_TIME INT32_MAX always This just to be consistent with a likely coming change to make HDB_entry's max_life signed. 68 years is long enough. --- kdc/kerberos5.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kdc/kerberos5.c b/kdc/kerberos5.c index bb64f54ee..ce46638a8 100644 --- a/kdc/kerberos5.c +++ b/kdc/kerberos5.c @@ -37,16 +37,16 @@ #if SIZEOF_TIME_T == 4 #define MAX_TIME ((time_t)INT32_MAX) #elif SIZEOF_TIME_T == 8 -#define MAX_TIME ((time_t)INT64_MAX) +#define MAX_TIME ((time_t)INT32_MAX) #else #error "Unexpected sizeof(time_t)" #endif #else #if SIZEOF_TIME_T == 4 -#define MAX_TIME ((time_t)UINT32_MAX) +#define MAX_TIME ((time_t)INT32_MAX) #else -#define MAX_TIME ((time_t)UINT64_MAX) +#define MAX_TIME ((time_t)INT32_MAX) #endif #endif