summaryrefslogtreecommitdiff
path: root/user/dovecot/time64.patch
diff options
context:
space:
mode:
Diffstat (limited to 'user/dovecot/time64.patch')
-rw-r--r--user/dovecot/time64.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/user/dovecot/time64.patch b/user/dovecot/time64.patch
new file mode 100644
index 000000000..4cd5c46e1
--- /dev/null
+++ b/user/dovecot/time64.patch
@@ -0,0 +1,20 @@
+--- 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) {