diff options
author | Xavier Beaudouin <kiwi@FreeBSD.org> | 2025-01-28 10:56:40 +0100 |
---|---|---|
committer | Xavier Beaudouin <kiwi@FreeBSD.org> | 2025-01-30 15:42:00 +0100 |
commit | 8736a24d16ec753dd6034baa14724e51b6d25081 (patch) | |
tree | e43c304c8ce3bd8b4e56be3b34ee0d6666b20305 /net/samba420/files/patch-source3_lib_util.c | |
parent | devel/tevent016: Update to 0.16.1 (diff) |
net/samba420: Repocopy from net/samba419
PR: 280533
Sponsored by: Klara, Inc.
Approved by: 0mp (mentor)
Approved by: samba (0mp, kiwi)
Diffstat (limited to 'net/samba420/files/patch-source3_lib_util.c')
-rw-r--r-- | net/samba420/files/patch-source3_lib_util.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/net/samba420/files/patch-source3_lib_util.c b/net/samba420/files/patch-source3_lib_util.c new file mode 100644 index 000000000000..cf5bae739144 --- /dev/null +++ b/net/samba420/files/patch-source3_lib_util.c @@ -0,0 +1,14 @@ +--- source3/lib/util.c.orig 2019-05-07 08:38:21 UTC ++++ source3/lib/util.c +@@ -1916,7 +1916,10 @@ bool any_nt_status_not_ok(NTSTATUS err1, + + int timeval_to_msec(struct timeval t) + { +- return t.tv_sec * 1000 + (t.tv_usec+999) / 1000; ++ unsigned long result; ++ ++ result = t.tv_sec * 1000 + (t.tv_usec+999) / 1000; ++ return result > INT_MAX ? INT_MAX : result; + } + + /******************************************************************* |