diff options
author | Mikael Urankar <mikael@FreeBSD.org> | 2024-02-05 13:56:27 +0100 |
---|---|---|
committer | Mikael Urankar <mikael@FreeBSD.org> | 2024-02-09 16:33:54 +0100 |
commit | b0a4fa4a12b096897f347755106940220e94c114 (patch) | |
tree | 11303760ec4eb164f16c80fd630dc1bea51d2d02 /net/samba419/files/patch-source3_lib_util.c | |
parent | www/{*chromium,iridium}: xmlError is only a const since version 2.12 (diff) |
net/samba419: Add new port
Many thanks to Joshua Kinard, Siva Mahadevan, Yasuhiro Kimura, Andrew Walker, and Peter Eriksson for their patches.
PR: 270383
Diffstat (limited to 'net/samba419/files/patch-source3_lib_util.c')
-rw-r--r-- | net/samba419/files/patch-source3_lib_util.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/net/samba419/files/patch-source3_lib_util.c b/net/samba419/files/patch-source3_lib_util.c new file mode 100644 index 000000000000..cf5bae739144 --- /dev/null +++ b/net/samba419/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; + } + + /******************************************************************* |