From b0a4fa4a12b096897f347755106940220e94c114 Mon Sep 17 00:00:00 2001 From: Mikael Urankar Date: Mon, 5 Feb 2024 13:56:27 +0100 Subject: net/samba419: Add new port Many thanks to Joshua Kinard, Siva Mahadevan, Yasuhiro Kimura, Andrew Walker, and Peter Eriksson for their patches. PR: 270383 --- net/samba419/files/patch-source3_lib_util.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 net/samba419/files/patch-source3_lib_util.c (limited to 'net/samba419/files/patch-source3_lib_util.c') 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; + } + + /******************************************************************* -- cgit v1.2.3