--- dovecot-2.3.14.orig/src/lib-oauth2/oauth2-jwt.c 2021-03-13 23:56:53.250000000 +0000 +++ dovecot-2.3.14/src/lib-oauth2/oauth2-jwt.c 2021-03-13 23:57:23.640000000 +0000 @@ -31,7 +31,7 @@ } static int -get_time_field(const struct json_tree *tree, const char *key, long *value_r) +get_time_field(const struct json_tree *tree, const char *key, long long *value_r) { const char *value = get_field(tree, key); int tz_offset ATTR_UNUSED; @@ -313,7 +313,7 @@ int ret; long t0 = time(NULL); /* default IAT and NBF to now */ - long iat, nbf, exp; + long long iat, nbf, exp; int tz_offset ATTR_UNUSED; if (sub == NULL) {